Skip to content

Commit

Permalink
Dev (#57)
Browse files Browse the repository at this point in the history
* Уменьшена ширину информационного текста в карточке профиля

Обновлены стили для информационного текста в карточке профиля. В частности, стиль ширины "w-full" был удален из класса "profile-card__info-text" в модуле CSS

* Fix ProfileCard and Integrations (#55)

* Правки (#56)

* Правки
  • Loading branch information
Scondic authored Jul 6, 2024
1 parent 6e40a27 commit 6cdd2b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/entities/ProfileCard/ui/ProfileCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface ProfileCardParams {
}

export const ProfileCard = ({ profile }: ProfileCardParams) => {
const { push } = useRouter();
const router = useRouter();
const { theme } = useTheme();

const { mutateAsync, isPending } = useEditProfile();
Expand All @@ -56,7 +56,7 @@ export const ProfileCard = ({ profile }: ProfileCardParams) => {
const formUpdate = new FormData();

formUpdate.append("name", profile?.profileName);
formUpdate.append("originalName", profile?.profileName || "");
formUpdate.append("originalName", profile?.profileName);
formUpdate.append("description", profile?.description);

if (body.icon && body.icon[0]) {
Expand All @@ -69,7 +69,8 @@ export const ProfileCard = ({ profile }: ProfileCardParams) => {

await mutateAsync(formUpdate);

return push(`${DASHBOARD_PAGES.PROFILE}/${profile.profileName}`);
// TODO: исправить кастыль
window.location.reload();
};

return (
Expand Down
4 changes: 2 additions & 2 deletions src/entities/ProfileCard/ui/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
}

.profile-card__info-icon-wrapper {
@apply flex flex-wrap gap-x-5 items-center;
@apply flex gap-x-5 items-center;
}

.profile-card__info-icon {
@apply h-16 w-16 min-w-16 min-h-16 object-cover rounded;
}

.profile-card__info-text {
@apply flex flex-col gap-y-1 w-full;
@apply flex flex-col gap-y-1 w-[calc(100%-20px-64px)];
}

.profile-card__info-name {
Expand Down
2 changes: 1 addition & 1 deletion src/views/integrations/ui/Integrations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const IntegrationsPage = () => {
<Link target="_blank" href={HREF_DISCORD}>
<Button size="sm" variant="outline" className="w-fit">
<LinkIcon className="mr-2" size={16} />
Поддежка
Поддержка
</Button>
</Link>
}
Expand Down

0 comments on commit 6cdd2b3

Please sign in to comment.