Skip to content

Commit

Permalink
fix: storybook text component
Browse files Browse the repository at this point in the history
  • Loading branch information
TomatoVan committed Apr 20, 2024
1 parent 8cefb18 commit c9075c0
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 92 deletions.
174 changes: 87 additions & 87 deletions extractedTranslations/en/translation.json
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
{
"": "",
"123": "123",
"Admin panel": "",
"All": "",
"Article ratings coming soon!": "",
"Articles app": "",
"Articles not found": "",
"Back to list": "",
"Cancel": "",
"Choose country": "",
"Choose currency": "",
"Comments": "",
"Comments is loading": "",
"Create new article": "",
"Economics": "",
"Edit": "",
"Enter ": "",
"Enter comment text": "",
"Enter cooment text": "",
"Error while loading articles": "",
"Error with getting article data": "",
"Error with getting profile data": "",
"Exit": "",
"Here you can search and view articles on various topics": "",
"IT": "",
"Incorrect age": "",
"Incorrect country": "",
"Incorrect user data": "",
"Leave your feedback on the article, it will help improve the quality": "",
"No data": "",
"PROFILE PAGE": "",
"Profile": "",
"Rate the article": "",
"Read more": {
"": {
"": {
"": ""
}
}
},
"Recommend": "",
"Save": "",
"Science": "",
"Search": "",
"Send": "",
"Server error": "",
"Sort by": "",
"Sorting by": "",
"Thanks for review!": "",
"Try to reload page": "",
"Welcome to the articles page!": "",
"You don`t have access to this page!": "",
"Your name": "",
"article_not_found": "",
"articles": "",
"articles page": "",
"articles_details": "",
"articles_details page": "",
"articles_detals": "",
"ascending": "",
"auth_form": "",
"auth_password": "",
"auth_username": "",
"by": "",
"comments": "",
"creation date": "",
"decrement": "",
"descending": "",
"exit": "",
"increment": "",
"login": "",
"login_error": "",
"name": "",
"no articles found": "",
"no comments": "",
"no profile found": "",
"read more": "",
"throw error": "throw error",
"views": "",
"Ваш отзыв": "",
"Главная страница": "",
"Закрыть": "",
"Обновить страницу": "",
"Отправить": "",
"Оценка статей скоро появится!": "",
"Произошла непредвиденная ошибка": "",
"Статьи не найдены": ""
"": "",
"123": "123",
"Admin panel": "",
"All": "",
"Article ratings coming soon!": "",
"Articles app": "",
"Articles not found": "",
"Back to list": "",
"Cancel": "",
"Choose country": "",
"Choose currency": "",
"Comments": "",
"Comments is loading": "",
"Create new article": "",
"Economics": "",
"Edit": "",
"Enter ": "",
"Enter comment text": "",
"Enter cooment text": "",
"Error while loading articles": "",
"Error with getting article data": "",
"Error with getting profile data": "",
"Exit": "",
"Here you can search and view articles on various topics": "",
"IT": "",
"Incorrect age": "",
"Incorrect country": "",
"Incorrect user data": "",
"Leave your feedback on the article, it will help improve the quality": "",
"No data": "",
"PROFILE PAGE": "",
"Profile": "",
"Rate the article": "",
"Read more": {
"": {
"": {
"": ""
}
}
},
"Recommend": "",
"Save": "",
"Science": "",
"Search": "",
"Send": "",
"Server error": "",
"Sort by": "",
"Sorting by": "",
"Thanks for review!": "",
"Try to reload page": "",
"Welcome to the articles page!": "",
"You don`t have access to this page!": "",
"Your name": "",
"article_not_found": "",
"articles": "",
"articles page": "",
"articles_details": "",
"articles_details page": "",
"articles_detals": "",
"ascending": "",
"auth_form": "",
"auth_password": "",
"auth_username": "",
"by": "",
"comments": "",
"creation date": "",
"decrement": "",
"descending": "",
"exit": "",
"increment": "",
"login": "",
"login_error": "",
"name": "",
"no articles found": "",
"no comments": "",
"no profile found": "",
"read more": "",
"throw error": "throw error",
"views": "",
"Ваш отзыв": "",
"Главная страница": "",
"Закрыть": "",
"Обновить страницу": "",
"Отправить": "",
"Оценка статей скоро появится!": "",
"Произошла непредвиденная ошибка": "",
"Статьи не найдены": ""
}
10 changes: 5 additions & 5 deletions src/shared/ui/redesigned/Text/Text.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { ComponentMeta, ComponentStory } from '@storybook/react';
import { ThemeDecorator } from '@/shared/config/storybook/ThemeDecorator/ThemeDecorator';
import { Text, TextSize, TextTheme } from './Text';
import { Text } from './Text';
import { Theme } from '@/shared/const/theme';

export default {
Expand Down Expand Up @@ -41,26 +41,26 @@ export const Error = Template.bind({});
Error.args = {
title: 'title title title',
text: 'description description description',
theme: TextTheme.ERROR,
variant: 'error',
};

export const sizeL = Template.bind({});
sizeL.args = {
title: 'title title title',
text: 'description description description',
size: TextSize.L,
size: 'l',
};

export const sizeM = Template.bind({});
sizeM.args = {
title: 'title title title',
text: 'description description description',
size: TextSize.M,
size: 'm',
};

export const sizeS = Template.bind({});
sizeS.args = {
title: 'title title title',
text: 'description description description',
size: TextSize.S,
size: 's',
};

0 comments on commit c9075c0

Please sign in to comment.