Fix playground (#5043)
Some code quality updates on the doc api playgrounds
This commit is contained in:
@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user