chore: clean up unused files and empty code blocks

This commit is contained in:
Wikid82
2025-11-26 01:12:52 +00:00
parent 4f03021c9c
commit 56903b0e06
14 changed files with 174 additions and 46 deletions

View File

@@ -35,11 +35,14 @@ export default function ProxyHostForm({ host, onSubmit, onCancel }: ProxyHostFor
const { servers: remoteServers } = useRemoteServers()
const { domains, createDomain } = useDomains()
const { certificates } = useCertificates()
const { containers: dockerContainers, isLoading: dockerLoading, error: dockerError } = useDocker(
formData.forward_host ? undefined : undefined // Simplified for now, logic below handles it
)
const [connectionSource, setConnectionSource] = useState<'local' | 'custom' | string>('custom')
const { containers: dockerContainers, isLoading: dockerLoading, error: dockerError } = useDocker(
connectionSource === 'local' ? 'local' : undefined,
connectionSource !== 'local' && connectionSource !== 'custom' ? connectionSource : undefined
)
const [selectedDomain, setSelectedDomain] = useState('')
const [selectedContainerId, setSelectedContainerId] = useState<string>('')