diff --git a/src/stories/Button/Button.stories.tsx b/src/stories/Button/Button.stories.tsx index 7fcf220..9d95e07 100644 --- a/src/stories/Button/Button.stories.tsx +++ b/src/stories/Button/Button.stories.tsx @@ -30,15 +30,15 @@ type Story = StoryObj; export const Primary: Story = { args: { - Type: "primary", - Text: "Button", + type: "primary", + content: "Button", }, }; export const Secondary: Story = { args: { - Type: "secondary", - Text: "Button", + type: "secondary", + content: "Button", }, }; diff --git a/src/stories/Button/Button.tsx b/src/stories/Button/Button.tsx index b78f154..5948261 100644 --- a/src/stories/Button/Button.tsx +++ b/src/stories/Button/Button.tsx @@ -2,20 +2,19 @@ import Link from 'next/link'; import { StyledButton } from './Button.style'; import { useState } from 'react'; -import Font from '../assets/Font/Font'; export interface ButtonProps { /** * Enter the button type "primary" or "secondary" */ - Type?: "primary" | "secondary"; + type: 'primary' | 'secondary'; /** - * Enter text button + * Enter content button */ - Text?: string; - /** + content: string; + /** * Leading to where - */ + */ href?: string; /** * Enter additional styles @@ -27,15 +26,26 @@ export interface ButtonProps { onClick?: () => void; } -export default function Button({ Type="primary", Text, href, style, ...props }: ButtonProps) { +export default function Button({ + type = 'primary', + content, + href, + style, + ...props +}: ButtonProps) { const [isDisabled, setIsDisabled] = useState(false); - const mode = `button--${Type}` + const mode = `button--${type}`; return ( <> - - - {Text} + + {content} diff --git a/src/stories/Card-solutions/CardSolution.stories.tsx b/src/stories/Card-solutions/CardSolution.stories.tsx index 0cae454..cfe8858 100644 --- a/src/stories/Card-solutions/CardSolution.stories.tsx +++ b/src/stories/Card-solutions/CardSolution.stories.tsx @@ -5,7 +5,7 @@ import CardSolution from "./CardSolution"; // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export const meta = { - title: "Components/Card/Card-Solution", + title: "Components/Card-Solution", component: CardSolution, parameters: { // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout @@ -34,7 +34,7 @@ type Story = StoryObj; // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args export const CardSolutions: Story = { args: { - logo: - {logo} + {icon} {tittle} {description} diff --git a/src/stories/Card/Card.stories.tsx b/src/stories/Card/Card.stories.tsx index a4ebd0b..f4b35c0 100644 --- a/src/stories/Card/Card.stories.tsx +++ b/src/stories/Card/Card.stories.tsx @@ -6,7 +6,7 @@ import Button from "../Button/Button"; // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export const meta = { - title: "Components/Card/Card", + title: "Components/Card", component: Card, parameters: { // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout @@ -44,8 +44,8 @@ export const CardGeneral: Story = { Earum rerum vero, nostrum, cupiditate repellat quod distinctio facilis repellendus iste ratione reprehenderit architecto est itaque, sequi molestias.