1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-24 05:39:35 +02:00

Added search bar

This commit is contained in:
unknown 2021-06-24 12:53:45 +02:00
parent 550e1e155b
commit 8026533a06
18 changed files with 166 additions and 9 deletions

View file

@ -34,6 +34,7 @@ const OtherSettings = (props: ComponentProps): JSX.Element => {
hideHeader: 0,
hideApps: 0,
hideCategories: 0,
hideSearch: 0,
useOrdering: 'createdAt',
openSameTab: 0
})
@ -47,6 +48,7 @@ const OtherSettings = (props: ComponentProps): JSX.Element => {
hideHeader: searchConfig('hideHeader', 0),
hideApps: searchConfig('hideApps', 0),
hideCategories: searchConfig('hideCategories', 0),
hideSearch: searchConfig('hideSearch', 0),
useOrdering: searchConfig('useOrdering', 'createdAt'),
openSameTab: searchConfig('openSameTab', 0)
})
@ -151,6 +153,18 @@ const OtherSettings = (props: ComponentProps): JSX.Element => {
{/* MODULES OPTIONS */}
<h2 className={classes.SettingsSection}>Modules</h2>
<InputGroup>
<label htmlFor='hideSearch'>Hide search bar</label>
<select
id='hideSearch'
name='hideSearch'
value={formData.hideSearch}
onChange={(e) => inputChangeHandler(e, true)}
>
<option value={1}>True</option>
<option value={0}>False</option>
</select>
</InputGroup>
<InputGroup>
<label htmlFor='hideHeader'>Hide greeting and date</label>
<select