diff --git a/.eslintignore b/.eslintignore index 4688ba10e..635624629 100644 --- a/.eslintignore +++ b/.eslintignore @@ -39,4 +39,6 @@ src/renderer/ethers.js # ignore storybook build files # ignore source for now src/stories +src/stories/Generic +src/stories/Presentational storybook-static diff --git a/src/renderer/Generics/redesign/Button/Button.tsx b/src/renderer/Generics/redesign/Button/Button.tsx index 1d554b94c..38f4289ee 100644 --- a/src/renderer/Generics/redesign/Button/Button.tsx +++ b/src/renderer/Generics/redesign/Button/Button.tsx @@ -11,17 +11,8 @@ export interface ButtonProps { * Is this the principal call to action on the page? */ primary?: boolean; - /** - * What state is the button in? - */ disabled?: boolean; - /** - * What background color to use - */ backgroundColor?: string; - /** - * How large should the button be? - */ size?: 'small' | 'medium' | 'large'; /** * Text only, with icon, or just icon? @@ -32,19 +23,13 @@ export interface ButtonProps { */ icon?: React.ReactNode; /** - * Button contents + * Button text content */ label: string; - /** - * Optional click handler - */ onClick?: () => void; } -/** - * Primary UI component for user interaction. - */ -export const Button = ({ +const Button = ({ primary = false, size = 'medium', disabled = false, @@ -72,3 +57,5 @@ export const Button = ({ ); }; + +export default Button; diff --git a/src/renderer/Generics/redesign/Splash/Splash.tsx b/src/renderer/Generics/redesign/Splash/Splash.tsx index 85b7d5f2c..2e45d6ec6 100644 --- a/src/renderer/Generics/redesign/Splash/Splash.tsx +++ b/src/renderer/Generics/redesign/Splash/Splash.tsx @@ -1,6 +1,6 @@ import { container, titleFont, descriptionFont, iconClass } from './splash.css'; import icon from '../../../../../assets/icon.png'; -import { Button } from '../Button'; +import Button from '../Button/Button'; export interface SplashProps { title: string; @@ -13,7 +13,11 @@ const Splash = ({ title, description }: SplashProps) => { NiceNode logo
{title}
{description}
-