From a468e9f40686a71f1cead62dad42d4d8bd4165bb Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Sat, 26 Apr 2025 16:59:39 +0200 Subject: [PATCH] Import react components --- src/components/Group/Settings.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Group/Settings.tsx b/src/components/Group/Settings.tsx index f5a952c..4af646b 100644 --- a/src/components/Group/Settings.tsx +++ b/src/components/Group/Settings.tsx @@ -1,4 +1,4 @@ -import * as React from 'react'; +import { forwardRef, Fragment, ReactElement, Ref, useEffect } from 'react'; import Dialog from '@mui/material/Dialog'; import AppBar from '@mui/material/AppBar'; import Toolbar from '@mui/material/Toolbar'; @@ -44,11 +44,11 @@ const LocalNodeSwitch = styled(Switch)(({ theme }) => ({ }, })); -const Transition = React.forwardRef(function Transition( +const Transition = forwardRef(function Transition( props: TransitionProps & { - children: React.ReactElement; + children: ReactElement; }, - ref: React.Ref + ref: Ref ) { return ; }); @@ -111,12 +111,12 @@ export const Settings = ({ address, open, setOpen }) => { } }; - React.useEffect(() => { + useEffect(() => { getUserSettings(); }, []); return ( - + { )} - + ); };