Skip to content
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

Merged
merged 4 commits into from
Apr 19, 2024
Merged

ErrorCard created #46

merged 4 commits into from
Apr 19, 2024

Conversation

Alfredo-Vqz
Copy link
Contributor

No description provided.

@Alfredo-Vqz Alfredo-Vqz linked an issue Apr 19, 2024 that may be closed by this pull request
Copy link
Contributor

@MoisesAdame MoisesAdame left a 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

Comment on lines 1 to 3
export interface IErrorCard{
title: string;
}
Copy link
Contributor

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">
Copy link
Contributor

@MoisesAdame MoisesAdame Apr 19, 2024

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

Copy link
Contributor

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

@MoisesAdame MoisesAdame modified the milestone: Components Apr 19, 2024

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">
Copy link
Contributor

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';
Copy link
Contributor

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.

@MoisesAdame MoisesAdame merged commit cbbffb8 into main Apr 19, 2024
@Djmr5 Djmr5 deleted the A01656384-ErrorCard branch April 24, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

C. ErrorCard
3 participants