-
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.
Merge pull request #459 from netgroup-polito/gbf/fix_tail_storybook
- Loading branch information
Showing
13 changed files
with
15,804 additions
and
43 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,8 @@ | |
"warn", | ||
{ | ||
"allow": [ | ||
"error" | ||
"error", | ||
"info" | ||
] | ||
} | ||
], | ||
|
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; |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/* DO NOT REMOTE THE NEXT LINE -> 💥 */ | ||
/* TAILWIND_STYLE_IMPORT */ | ||
|
||
/* This file serve the only purpose to not include the tailwind import in the less file, to allow its use in storybook */ | ||
|
||
@tailwind utilities; |
Oops, something went wrong.