Skip to content

Commit bab1fba

Browse files
committed
feat: change style of settings to match selectors
1 parent ead3ea0 commit bab1fba

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

src/components/common/Settings.js

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import React, { useState } from 'react'
2-
import { Popover, Button, Checkbox, Form, Input } from 'antd'
2+
import { Popover, Button, Checkbox, Input } from 'antd'
33
import { SHOW_LATEST_RCS } from '../../utils'
4+
import styled from 'styled-components'
45

6+
const InputContainer = styled.div({
7+
marginTop: '16px'
8+
})
59
const Settings = ({ handleSettingsChange, appName, setAppName }) => {
610
const [popoverVisibility, setVisibility] = useState(false)
711

@@ -14,24 +18,23 @@ const Settings = ({ handleSettingsChange, appName, setAppName }) => {
1418
<Popover
1519
placement="bottomRight"
1620
content={
17-
<Form>
18-
<Form.Item>
19-
<Checkbox.Group onChange={updateCheckboxValues}>
20-
<div>
21-
<Checkbox value={SHOW_LATEST_RCS}>{SHOW_LATEST_RCS}</Checkbox>
22-
</div>
23-
</Checkbox.Group>
24-
</Form.Item>
25-
<Form.Item label="Your AppName">
21+
<>
22+
<Checkbox.Group onChange={updateCheckboxValues}>
23+
<div>
24+
<Checkbox value={SHOW_LATEST_RCS}>{SHOW_LATEST_RCS}</Checkbox>
25+
</div>
26+
</Checkbox.Group>
27+
<InputContainer>
28+
<h4>What's your app name?</h4>
2629
<Input
2730
value={appName}
2831
onChange={e => {
2932
setAppName(e.target.value)
3033
}}
3134
placeholder="MyAwesomeApp"
3235
/>
33-
</Form.Item>
34-
</Form>
36+
</InputContainer>
37+
</>
3538
}
3639
trigger="click"
3740
visible={popoverVisibility}

0 commit comments

Comments
 (0)