-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Federico Cucinella <[email protected]>
- Loading branch information
Showing
10 changed files
with
15,745 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,4 @@ yarn-debug.log* | |
yarn-error.log* | ||
|
||
storybook-static | ||
yarn.lock | ||
.env |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
20 changes: 12 additions & 8 deletions
20
...rc/components/Example/Example.stories.tsx → ...s/ExampleButton/ExampleButton.stories.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
31 changes: 31 additions & 0 deletions
31
frontend/src/components/Examples/ExampleButton/ExampleButton.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,31 @@ | ||
import { FC } from 'react'; | ||
import { Button } from 'antd'; | ||
import { SizeType } from 'antd/lib/config-provider/SizeContext'; | ||
import './ExampleButton.css'; | ||
|
||
export interface IExampleButtonProps { | ||
text: string; | ||
disabled: boolean; | ||
onClick: () => void; | ||
specialCSS: boolean; | ||
size: SizeType; | ||
} | ||
|
||
const Example: FC<IExampleButtonProps> = ({ ...props }) => { | ||
const { text, disabled, onClick, size, specialCSS } = props; | ||
return ( | ||
<div className="p-10"> | ||
<Button | ||
disabled={disabled} | ||
size={size} | ||
onClick={onClick} | ||
type="primary" | ||
className="m-10 rounded-xl" | ||
> | ||
<h5 className={specialCSS ? 'rainbow-text' : ''}>{text}</h5> | ||
</Button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Example; |
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 @@ | ||
import Example from './ExampleButton'; | ||
export default Example; |
Oops, something went wrong.