-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb896f9
commit 2fd14d9
Showing
5 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/components/storyUtils/ButtonShowcases/ButtonShowcase.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from 'react'; | ||
|
||
import Button, { ButtonProps } from '../../Button'; | ||
|
||
const ButtonShowcase: React.FCC<ButtonProps & { hasAvatar: boolean; buttonLabel: string }> = ({ | ||
isBlock, | ||
type, | ||
hasAvatar, | ||
avatar, | ||
size, | ||
iconLeftName, | ||
iconRightName, | ||
isLoading, | ||
isDisabled, | ||
buttonLabel, | ||
}) => { | ||
const avatarProps = hasAvatar ? { avatar } : {}; | ||
|
||
return ( | ||
<Button | ||
isBlock={isBlock} | ||
type={type} | ||
size={size} | ||
iconLeftName={iconLeftName} | ||
iconRightName={iconRightName} | ||
isLoading={isLoading} | ||
isDisabled={isDisabled} | ||
{...avatarProps} | ||
> | ||
{buttonLabel} | ||
</Button> | ||
); | ||
}; | ||
|
||
export default ButtonShowcase; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as LoadingButtonShowcase } from './LoadingButtonShowcase'; | ||
export { default as ButtonShowcase } from './ButtonShowcase'; |
This file was deleted.
Oops, something went wrong.