From 335ee3a71681bda97c50fc697f39a817d4975c0d Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 28 Apr 2024 14:25:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Disallow=20users=20to=20change?= =?UTF-8?q?=20the=20ticker=20domain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ticker/form/Domain.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/ticker/form/Domain.tsx b/src/components/ticker/form/Domain.tsx index 3b40804d..d26f4fdb 100644 --- a/src/components/ticker/form/Domain.tsx +++ b/src/components/ticker/form/Domain.tsx @@ -1,11 +1,19 @@ import { TextField } from '@mui/material' import { FC } from 'react' import { Controller, useFormContext } from 'react-hook-form' +import useAuth from '../../useAuth' const Domain: FC = () => { const { control } = useFormContext() + const { user } = useAuth() - return } /> + return ( + } + /> + ) } export default Domain