feat(profile): add 'Услуги' link button to LinksCard for service management
This commit is contained in:
parent
fde9305632
commit
5ca471a87f
@ -14,6 +14,12 @@ export function LinksCard() {
|
|||||||
text="График работы"
|
text="График работы"
|
||||||
visible={isMaster}
|
visible={isMaster}
|
||||||
/>
|
/>
|
||||||
|
<LinkButton
|
||||||
|
description="Добавить и редактировать ваши услуги мастера"
|
||||||
|
href="/profile/services"
|
||||||
|
text="Услуги"
|
||||||
|
visible={isMaster}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,7 +12,7 @@ export function LinkButton({ description, href, text, visible }: Props) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Link href={href} rel="noopener noreferrer">
|
<Link href={href} rel="noopener noreferrer">
|
||||||
<div className="flex w-full flex-col rounded-2xl bg-background p-4 px-6 shadow-lg backdrop-blur-2xl dark:bg-primary/5">
|
<div className="flex min-h-24 w-full flex-col rounded-2xl bg-background p-4 px-6 shadow-lg backdrop-blur-2xl dark:bg-primary/5">
|
||||||
<h2 className="font-bold text-foreground">{text}</h2>
|
<h2 className="font-bold text-foreground">{text}</h2>
|
||||||
<span className="mt-1 text-sm text-muted-foreground">{description}</span>
|
<span className="mt-1 text-sm text-muted-foreground">{description}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user