Skip to content

Commit

Permalink
Fix more indentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Aug 14, 2023
1 parent 449c283 commit 207c55e
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docs/Inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,12 @@ const CityInput = (props: SelectInputProps) => {
};

const OrderEdit = () => (
<Edit>
<SimpleForm>
<SelectInput source="country" choices={toChoices(countries)} />
<CityInput source="cities" />
</SimpleForm>
</Edit>
<Edit>
<SimpleForm>
<SelectInput source="country" choices={toChoices(countries)} />
<CityInput source="cities" />
</SimpleForm>
</Edit>
);

export default OrderEdit;
Expand Down Expand Up @@ -893,18 +893,18 @@ import { Select, MenuItem } from "@mui/material";
import { InputProps, useInput } from "react-admin";

const SexInput = (props: InputProps) => {
const {
field,
fieldState: { isTouched, invalid, error },
formState: { isSubmitted },
} = useInput(props);

return (
<Select label="Sex" {...field}>
<MenuItem value="M">Male</MenuItem>
<MenuItem value="F">Female</MenuItem>
</Select>
);
const {
field,
fieldState: { isTouched, invalid, error },
formState: { isSubmitted },
} = useInput(props);

return (
<Select label="Sex" {...field}>
<MenuItem value="M">Male</MenuItem>
<MenuItem value="F">Female</MenuItem>
</Select>
);
};
export default SexInput;
```
Expand Down

0 comments on commit 207c55e

Please sign in to comment.