fix: fix button stories (#87)
This commit is contained in:
parent
4e9023ce3f
commit
77b20d527d
|
|
@ -24,14 +24,14 @@ export const Default = () => (
|
||||||
<Button
|
<Button
|
||||||
colorScheme="blue"
|
colorScheme="blue"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
css={{ py: '$1', borderRadius: '$md' }}
|
css={{ py: '$1', height: '$5', borderRadius: '$md' }}
|
||||||
>
|
>
|
||||||
Use for NFA
|
Use for NFA
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
colorScheme="gray"
|
colorScheme="gray"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
css={{ py: '$1', borderRadius: '$md' }}
|
css={{ py: '$1', height: '$5', borderRadius: '$md' }}
|
||||||
>
|
>
|
||||||
NFA Repo
|
NFA Repo
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { ButtonProps, StyledButton } from './button.styled';
|
import { ButtonProps, StyledButton } from './button.styles';
|
||||||
import { ButtonContent } from './button-content';
|
import { ButtonContent } from './button-content';
|
||||||
import { ButtonSpinner } from './button-spinner';
|
import { ButtonSpinner } from './button-spinner';
|
||||||
import { forwardRef } from 'react';
|
import { forwardRef } from 'react';
|
||||||
|
|
@ -38,6 +38,7 @@ export const Button = forwardRef<ButtonProps, 'button'>((props, ref) => {
|
||||||
data-loading={isLoading}
|
data-loading={isLoading}
|
||||||
css={{
|
css={{
|
||||||
width: isFullWidth ? '100%' : undefined,
|
width: isFullWidth ? '100%' : undefined,
|
||||||
|
...(ownProps?.css || {}),
|
||||||
}}
|
}}
|
||||||
{...ownProps}
|
{...ownProps}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { forwardRef, useMemo } from 'react';
|
import React, { forwardRef, useMemo } from 'react';
|
||||||
|
|
||||||
import { Button } from './button';
|
import { Button } from './button';
|
||||||
import { ButtonProps } from './button.styled';
|
import { ButtonProps } from './button.styles';
|
||||||
|
|
||||||
type OmittedProps =
|
type OmittedProps =
|
||||||
| 'leftIcon'
|
| 'leftIcon'
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
export * from './button.styled';
|
export * from './button.styles';
|
||||||
export * from './button';
|
export * from './button';
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
export * from './grid.styled';
|
export * from './grid.styles';
|
||||||
export * from './flex.styled';
|
export * from './flex.styles';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue