refactor: small code cleanups

- remove compiler directives
This commit is contained in:
Carlos Valente
2025-07-27 17:10:21 +02:00
committed by Carlos Valente
parent 8a7f8c8ebc
commit 9ab54edbf5
11 changed files with 0 additions and 13 deletions
@@ -1,5 +1,3 @@
'use no memo'; // RHF and react-compiler don't seem to get along
import { useState } from 'react';
import { useForm } from 'react-hook-form';
import QRCode from 'react-qr-code';
@@ -34,7 +32,6 @@ interface GenerateLinkFormOptions {
type GenerateLinkState = 'pending' | 'loading' | 'success' | 'error';
export default function GenerateLinkForm({ hostOptions, pathOptions, isLockedToView }: GenerateLinkFormProps) {
'use no memo'; // RHF and react-compiler don't seem to get along
const [formState, setFormState] = useState<GenerateLinkState>('pending');
const [url, setUrl] = useState(serverURL);