Skip to content

Commit

Permalink
Fix playground
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Dec 10, 2024
1 parent cf42522 commit 831703d
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions website/src/components/PlaygroundFeatures/ConfigBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from "react";
import store, {
getNullableByDefault,
getOutputOption,
getShowGratsDirectives,
useAppSelector,
} from "./store";
import FormatButton from "./FormatButton";
Expand All @@ -11,7 +10,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext";

export default function ConfigBar(): JSX.Element {
const nullableByDefault = useAppSelector(getNullableByDefault);
const showGratsDirectives = useAppSelector(getShowGratsDirectives);
const outputOption = useAppSelector(getOutputOption);
const { gitHash } = useDocusaurusContext().siteConfig.customFields as {
gitHash: string;
Expand Down Expand Up @@ -71,21 +69,6 @@ export default function ConfigBar(): JSX.Element {
<option value="resolverSignatures">Metadata</option>
</select>
</Label>
{outputOption === "sdl" && (
<Label>
<input
checked={showGratsDirectives}
type="checkbox"
onChange={(e) => {
store.dispatch({
type: "SHOW_GRATS_DIRECTIVE_INPUT_CHANGED",
value: e.target.checked,
});
}}
/>
Show Grats directives
</Label>
)}
</ConfigBlock>
<div
style={{
Expand Down

0 comments on commit 831703d

Please sign in to comment.