Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eegli committed Jan 2, 2024
1 parent affc4de commit 8a4df3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/src/components/code-blocks/codeblock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import FormControl from '@mui/material/FormControl';
import FormControlLabel from '@mui/material/FormControlLabel';
import InputLabel from '@mui/material/InputLabel';
import MenuItem from '@mui/material/MenuItem';
import OutlinedInput from '@mui/material/OutlinedInput';
import Select from '@mui/material/Select';
import TextField from '@mui/material/TextField';
import React from 'react';
Expand Down Expand Up @@ -40,6 +39,7 @@ export const CliCodeBlock = ({
const isRequired = (key: string) => required.includes(key);

const merged = { ...commandMap, ...inputFields };

return (
<MuiThemeWrapper>
<Box
Expand Down Expand Up @@ -80,17 +80,18 @@ export const CliCodeBlock = ({
if (key === scopesKey) {
return (
<FormControl key={key} required={isRequired(key)}>
<InputLabel>{key}</InputLabel>
<InputLabel htmlFor={key}>{key}</InputLabel>
<Select
multiple
labelId={key}
label={key}
value={value}
onChange={event =>
setInputFields({
...inputFields,
[key]: event.target.value,
})
}
input={<OutlinedInput label="scope" />}
>
{authScopes.map(scope => (
<MenuItem key={scope} value={scope}>
Expand Down Expand Up @@ -130,7 +131,6 @@ export const CliCodeBlock = ({
return (
<TextField
key={key}
id={key}
type="text"
required={isRequired(key)}
label={key}
Expand Down

0 comments on commit 8a4df3e

Please sign in to comment.