fix: system theme in dark mode (#1823)

This commit is contained in:
Feldrise 2024-03-19 08:41:09 +01:00 committed by GitHub
parent cdbb15f33e
commit 2b0ad29b93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ const GraphQLRequestPane = ({ item, collection, leftPaneWidth, onSchemaLoad, tog
const variables = item.draft
? get(item, 'draft.request.body.graphql.variables')
: get(item, 'request.body.graphql.variables');
const { storedTheme } = useTheme();
const { displayedTheme } = useTheme();
const [schema, setSchema] = useState(null);
useEffect(() => {
@ -61,7 +61,7 @@ const GraphQLRequestPane = ({ item, collection, leftPaneWidth, onSchemaLoad, tog
return (
<QueryEditor
collection={collection}
theme={storedTheme}
theme={displayedTheme}
schema={schema}
width={leftPaneWidth}
onSave={onSave}