Skip to content

Commit f6b1fbd

Browse files
demo: add privacy notice (#270)
1 parent 271430d commit f6b1fbd

12 files changed

+27
-10
lines changed

demo/IntrospectionModal.tsx

+27-10
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function IntrospectionDialog(props: IntrospectionDialogProps) {
141141
width: 0.9,
142142
height: 0.9,
143143
maxWidth: 800,
144-
maxHeight: 400,
144+
maxHeight: 450,
145145
},
146146
},
147147
}}
@@ -219,15 +219,18 @@ interface SDLTabProps {
219219
function SDLTab(props: SDLTabProps) {
220220
const { sdlText, onSDLTextChange } = props;
221221
return (
222-
<TextField
223-
required
224-
multiline
225-
fullWidth
226-
rows={9}
227-
value={sdlText}
228-
placeholder="Paste SDL Here"
229-
onChange={(event) => onSDLTextChange(event.target.value)}
230-
/>
222+
<Stack spacing={1} justifyContent="flex-start" alignItems="center">
223+
<TextField
224+
required
225+
multiline
226+
fullWidth
227+
rows={9}
228+
value={sdlText}
229+
placeholder="Paste SDL Here"
230+
onChange={(event) => onSDLTextChange(event.target.value)}
231+
/>
232+
<PrivacyNote />
233+
</Stack>
231234
);
232235
}
233236

@@ -274,6 +277,20 @@ function IntrospectionTab(props: IntrospectionTabProps) {
274277
placeholder="Paste Introspection Here"
275278
onChange={(event) => onJSONTextChange(event.target.value)}
276279
/>
280+
<PrivacyNote />
277281
</Stack>
278282
);
279283
}
284+
285+
function PrivacyNote() {
286+
return (
287+
<Box>
288+
<u>
289+
<b>Privacy note: </b>
290+
</u>
291+
When you provide your GraphQL schema to GraphQL Voyager, it is fully
292+
processed within your browser and is not transmitted to any external
293+
servers or third parties.
294+
</Box>
295+
);
296+
}
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)