fix: fix button stories (#87)

This commit is contained in:
Camila Sosa Morales 2023-01-30 12:11:54 -05:00 committed by GitHub
parent 4e9023ce3f
commit 77b20d527d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 7 deletions

View File

@ -24,14 +24,14 @@ export const Default = () => (
<Button
colorScheme="blue"
variant="outline"
css={{ py: '$1', borderRadius: '$md' }}
css={{ py: '$1', height: '$5', borderRadius: '$md' }}
>
Use for NFA
</Button>
<Button
colorScheme="gray"
variant="outline"
css={{ py: '$1', borderRadius: '$md' }}
css={{ py: '$1', height: '$5', borderRadius: '$md' }}
>
NFA Repo
</Button>

View File

@ -1,4 +1,4 @@
import { ButtonProps, StyledButton } from './button.styled';
import { ButtonProps, StyledButton } from './button.styles';
import { ButtonContent } from './button-content';
import { ButtonSpinner } from './button-spinner';
import { forwardRef } from 'react';
@ -38,6 +38,7 @@ export const Button = forwardRef<ButtonProps, 'button'>((props, ref) => {
data-loading={isLoading}
css={{
width: isFullWidth ? '100%' : undefined,
...(ownProps?.css || {}),
}}
{...ownProps}
>

View File

@ -1,7 +1,7 @@
import React, { forwardRef, useMemo } from 'react';
import { Button } from './button';
import { ButtonProps } from './button.styled';
import { ButtonProps } from './button.styles';
type OmittedProps =
| 'leftIcon'

View File

@ -1,2 +1,2 @@
export * from './button.styled';
export * from './button.styles';
export * from './button';

View File

@ -1,2 +1,2 @@
export * from './grid.styled';
export * from './flex.styled';
export * from './grid.styles';
export * from './flex.styles';