diff --git a/extractedTranslations/en/profile.json b/extractedTranslations/en/profile.json index 9383768..60ad9a2 100644 --- a/extractedTranslations/en/profile.json +++ b/extractedTranslations/en/profile.json @@ -1,30 +1,30 @@ { - "": "", - "Age": "", - "Avatar": "", - "City": "", - "Edit": "", - "Error": "", - "Error with getting profile data": "", - "Error with profile ": "", - "Incorrect age": "", - "Incorrect country": "", - "Incorrect user data": "", - "Lastname": "", - "Name": "", - "No data": "", - "Profile": "", - "Server error": "", - "Try to reload page": "", - "Username": "", - "Username>": "", - "Your age": "", - "Your avatar": "", - "Your city": "", - "Your lastname": "", - "Your name": "", - "Your surname": "", - "Your username": "", - "Попробуйте обновить страницу": "", - "Произошла ошибка при загрузке профиля": "" + "": "", + "Age": "", + "Avatar": "", + "City": "", + "Edit": "", + "Error": "", + "Error with getting profile data": "", + "Error with profile ": "", + "Incorrect age": "", + "Incorrect country": "", + "Incorrect user data": "", + "Lastname": "", + "Name": "", + "No data": "", + "Profile": "", + "Server error": "", + "Try to reload page": "", + "Username": "", + "Username>": "", + "Your age": "", + "Your avatar": "", + "Your city": "", + "Your lastname": "", + "Your name": "", + "Your surname": "", + "Your username": "", + "Попробуйте обновить страницу": "", + "Произошла ошибка при загрузке профиля": "" } diff --git a/json-server/db.json b/json-server/db.json index 692e982..c72a3ee 100644 --- a/json-server/db.json +++ b/json-server/db.json @@ -762,7 +762,7 @@ }, "avatar": "https://mobimg.b-cdn.net/v3/fetch/22/2207633df03a819cd72889249c8361a8.jpeg?w=1470&r=0.5625", "jsonSettings": { - "theme": "app_dark_theme", + "theme": "app_light_theme", "isFirstVisit": true, "settingsPageHasBeenOpen": false, "isArticlesPageWasOpened": true @@ -817,7 +817,7 @@ "profile": [ { "id": "1", - "first": "timurasdasd", + "first": "leotestt", "lastname": "ulbi", "age": 465, "currency": "RUB", diff --git a/src/entities/Article/ui/ArticleListItem/ArticleListItem.tsx b/src/entities/Article/ui/ArticleListItem/ArticleListItem.tsx index 7096da1..86be92b 100644 --- a/src/entities/Article/ui/ArticleListItem/ArticleListItem.tsx +++ b/src/entities/Article/ui/ArticleListItem/ArticleListItem.tsx @@ -105,7 +105,7 @@ export const ArticleListItem = memo((props: ArticleListItemProps) => { cls[view], ])} > - + + { if (isLoading) { return ( - + @@ -89,6 +89,7 @@ export const ProfileCard = (props: ProfileCardProps) => { return ( { className={classNames(cls.ArticleViewSelectorRedesigned, {}, [ className, ])} - border="round" + border="partial" > {viewTypes.map((viewType) => ( diff --git a/src/features/addCommentForm/ui/AddCommentForm/AddCommentForm.tsx b/src/features/addCommentForm/ui/AddCommentForm/AddCommentForm.tsx index 6c7841c..c1e75de 100644 --- a/src/features/addCommentForm/ui/AddCommentForm/AddCommentForm.tsx +++ b/src/features/addCommentForm/ui/AddCommentForm/AddCommentForm.tsx @@ -51,7 +51,7 @@ const AddCommentForm = memo((props: AddCommentFormProps) => { return ( - + { return ( - + {validateErrors?.length && validateErrors.map((err) => ( diff --git a/src/features/editableProfileCard/ui/EditableProfileCardHeader/EditableProfileCardHeader.tsx b/src/features/editableProfileCard/ui/EditableProfileCardHeader/EditableProfileCardHeader.tsx index de06d08..da9259d 100644 --- a/src/features/editableProfileCard/ui/EditableProfileCardHeader/EditableProfileCardHeader.tsx +++ b/src/features/editableProfileCard/ui/EditableProfileCardHeader/EditableProfileCardHeader.tsx @@ -2,8 +2,8 @@ import { useTranslation } from 'react-i18next'; import { memo, useCallback } from 'react'; import { useSelector } from 'react-redux'; import { HStack } from '@/shared/ui/redesigned/Stack'; -import { Button, ButtonTheme } from '@/shared/ui/deprecated/Button'; -import { Text } from '@/shared/ui/deprecated/Text'; +import { Button } from '@/shared/ui/redesigned/Button'; +import { Text } from '@/shared/ui/redesigned/Text'; import { classNames } from '@/shared/lib/classNames/classNames'; import { useAppDispatch } from '@/shared/lib/hook/useAppDispatch/useAppDispatch'; import { getUserAuthData } from '../../../../entities/User'; @@ -11,6 +11,7 @@ import { profileActions } from '../../model/slice/profileSlice'; import { getProfileData } from '../../model/selectors/getProfileData/getProfileData'; import { getProfileReadonly } from '../../model/selectors/getProfileReadonly/getProfileReadonly'; import { updateProfileData } from '../../model/services/updateProfileData/updateProfileData'; +import { Card } from '@/shared/ui/redesigned/Card'; interface EditableProfileCardHeaderProps { className?: string; @@ -40,43 +41,44 @@ export const EditableProfileCardHeader = memo( }, [dispatch]); return ( - - - {canEdit && ( - <> - {readonly ? ( - - ) : ( - + + + + {canEdit && ( + <> + {readonly ? ( - - - )} - - )} - + ) : ( + + + + + )} + + )} + + ); }, ); diff --git a/src/pages/ArticlesDetailsPage/ui/AdditionalInfoContainer/AdditionalInfoContainer.tsx b/src/pages/ArticlesDetailsPage/ui/AdditionalInfoContainer/AdditionalInfoContainer.tsx index 0861c72..f5a2fee 100644 --- a/src/pages/ArticlesDetailsPage/ui/AdditionalInfoContainer/AdditionalInfoContainer.tsx +++ b/src/pages/ArticlesDetailsPage/ui/AdditionalInfoContainer/AdditionalInfoContainer.tsx @@ -23,7 +23,7 @@ export const AdditionalInfoContainer = memo(() => { } return ( - + { fullWidth?: boolean; addonLeft?: ReactNode; addonRight?: ReactNode; + color?: ButtonColor; } export const Button = memo((props: ButtonProps) => { @@ -29,6 +31,8 @@ export const Button = memo((props: ButtonProps) => { fullWidth, addonLeft, addonRight, + color = 'normal', + ...otherProps } = props; @@ -41,7 +45,7 @@ export const Button = memo((props: ButtonProps) => { [cls.withAddon]: Boolean(addonLeft) || Boolean(addonRight), }; - const additional = [className, cls[variant], cls[size]]; + const additional = [className, cls[variant], cls[size], cls[color]]; return ( {isAuthModal && (