-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ErrorCard created #46
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agregar el export tambien en src/components/index.ts
src/components/ErrorCard/types.ts
Outdated
export interface IErrorCard{ | ||
title: string; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agregar cometarios y checar que aparezcan en los storybooks. Puedes checar components/Button/types.ts
.
|
||
const ErrorCard: React.FC<IErrorCard> = ({ title }) => { | ||
return ( | ||
<div className="bg-white-500 text-red-700 text-left p-4 rounded-xl shadow-lg text-2xl font-bold"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vuelve a revisar el figma y asegúrate de seguirlo tal y como esta, por ejemplo:
- bg-white-500: Sería bg-white, porque el figma tiene #FFFFF.
- text-red-700: Sería text-aci-red que es #CC3232, ya que text-red-700 no es el que se puso en el figma.
- p-4: Se cambiaria ya que en figma tenemos 20px en padding horizontal y 5px en vertical, lo cual equivaldría aproximadamente a px-5 y py-1
- text-2xl: Mas bien seria text-text, ya que en figma tenemos Text Black Bold. font-bold se queda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reestructura todo el archivo basándote en components/Button/Button.stories.tsx
, ya que faltan muchas etiquetas como parameters, argTypes y tags
|
||
const ErrorCard: React.FC<IErrorCard> = ({ title }) => { | ||
return ( | ||
<div className="bg-white text-aci-red text-left px-5 py-1 rounded-xl shadow-lg text-text font-bold"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agregar w-full
para que tome el width total del componente padre en el que lo pongamos.
@@ -0,0 +1,26 @@ | |||
import { Meta, StoryObj } from '@storybook/react'; | |||
import { fn } from '@storybook/test'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checar si la dependencia import { fn } from '@storybook/test';
esta en uso, si no, quitarla.
No description provided.