-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c14f42
commit bcb16eb
Showing
2 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/components/organisms/FiltersPresetModal/SaveModalContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import {Form, FormInstance, Input} from 'antd'; | ||
|
||
interface IProps { | ||
form: FormInstance<any>; | ||
} | ||
|
||
const SaveModalContent: React.FC<IProps> = props => { | ||
const {form} = props; | ||
|
||
return ( | ||
<Form form={form} layout="vertical"> | ||
<Form.Item name="name" label="Preset name" rules={[{required: true, message: 'Preset name is required'}]}> | ||
<Input id="filters-preset-name-input" placeholder="Enter preset name" /> | ||
</Form.Item> | ||
</Form> | ||
); | ||
}; | ||
|
||
export default SaveModalContent; |