Skip to content

Commit 2d3b812

Browse files
committed
feat: moved clip-path type on ShapeForm to the top
1 parent 5fce809 commit 2d3b812

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

components/utils/ShapeForm.js

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,6 @@ const ColorPicker = styled.input`
1818
const ShapeForm = (props) => {
1919
return (
2020
<Form noValidate validated={props.validated} onSubmit={props.handleSubmit} id="createShapeForm">
21-
<Form.Group>
22-
<Form.Label>Name</Form.Label>
23-
<Form.Control
24-
type="text"
25-
name="name"
26-
value={props.shapeInformation.name}
27-
onChange={props.handleChange}
28-
required
29-
/>
30-
<Form.Control.Feedback type="invalid">Name required!</Form.Control.Feedback>
31-
<Form.Check
32-
name="private"
33-
label="Make it Private"
34-
id="private"
35-
checked={props.shapeInformation.private}
36-
onChange={(e) => props.handleChange(e)}
37-
className="mt-1"
38-
/>
39-
</Form.Group>
4021
<Form.Group>
4122
<Form.Label>Type</Form.Label>
4223
<div>
@@ -59,6 +40,26 @@ const ShapeForm = (props) => {
5940
</div>
6041
</Form.Group>
6142

43+
<Form.Group>
44+
<Form.Label>Name</Form.Label>
45+
<Form.Control
46+
type="text"
47+
name="name"
48+
value={props.shapeInformation.name}
49+
onChange={props.handleChange}
50+
required
51+
/>
52+
<Form.Control.Feedback type="invalid">Name required!</Form.Control.Feedback>
53+
<Form.Check
54+
name="private"
55+
label="Make it Private"
56+
id="private"
57+
checked={props.shapeInformation.private}
58+
onChange={(e) => props.handleChange(e)}
59+
className="mt-1"
60+
/>
61+
</Form.Group>
62+
6263
<Form.Group>
6364
<Form.Label>Color</Form.Label>
6465
<div>
@@ -71,6 +72,7 @@ const ShapeForm = (props) => {
7172
/>
7273
</div>
7374
</Form.Group>
75+
7476
<Form.Group>
7577
<Form.Label>What's it about?</Form.Label>
7678
<Form.Control

0 commit comments

Comments
 (0)