refactor(profile): comment out change role feature
This commit is contained in:
parent
6a8804abb1
commit
64a7421d7c
@ -1,11 +1,9 @@
|
||||
'use client';
|
||||
|
||||
import { type ProfileProps } from '../types';
|
||||
import { CheckboxWithText } from './checkbox-field';
|
||||
import { DataField } from './text-field';
|
||||
import { CardSectionHeader } from '@/components/ui';
|
||||
import { useCustomerMutation, useCustomerQuery } from '@/hooks/api/customers';
|
||||
import { Enum_Customer_Role as Role } from '@repo/graphql/types';
|
||||
import { Button } from '@repo/ui/components/ui/button';
|
||||
import { Card } from '@repo/ui/components/ui/card';
|
||||
import Link from 'next/link';
|
||||
@ -49,7 +47,7 @@ export function ProfileDataCard() {
|
||||
value={customer?.name ?? ''}
|
||||
/>
|
||||
<DataField disabled id="phone" label="Телефон" readOnly value={customer?.phone ?? ''} />
|
||||
<CheckboxWithText
|
||||
{/* <CheckboxWithText
|
||||
checked={customer.role !== 'client'}
|
||||
description="Разрешить другим пользователям записываться к вам"
|
||||
onChange={(checked) =>
|
||||
@ -58,7 +56,7 @@ export function ProfileDataCard() {
|
||||
})
|
||||
}
|
||||
text="Быть мастером"
|
||||
/>
|
||||
/> */}
|
||||
</div>
|
||||
</Card>
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user