Fix playground (#5043)

Some code quality updates on the doc api playgrounds
This commit is contained in:
martmull
2024-04-19 18:18:08 +02:00
committed by GitHub
parent 14f97e2e80
commit 43f0b11aab
3 changed files with 36 additions and 33 deletions

View File

@ -9,9 +9,11 @@ const Playground = ({
setToken,
setBaseUrl,
subDoc,
}: Partial<React.PropsWithChildren | TokenFormProps> & {
subDoc: string;
}) => {
}: Partial<React.PropsWithChildren> &
Omit<
TokenFormProps,
'isTokenValid' | 'setIsTokenValid' | 'setLoadingState'
>) => {
const [isTokenValid, setIsTokenValid] = useState(false);
const [isLoading, setIsLoading] = useState(false);
return (