Skip to content

Commit

Permalink
fix: system theme in dark mode (#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feldrise committed Mar 19, 2024
1 parent cdbb15f commit 2b0ad29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 2b0ad29

Please sign in to comment.