mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
ui tweaks
This commit is contained in:
parent
d5d9ce370b
commit
9ae58d45ec
@ -1,21 +1,21 @@
|
||||
import React, { ReactElement } from 'react'
|
||||
import { useUserPreferences } from '../../../providers/UserPreferences'
|
||||
import Input from '../../atoms/Input'
|
||||
import FormHelp from '../../atoms/Input/Help'
|
||||
import InputElement from '../../atoms/Input/InputElement'
|
||||
|
||||
export default function Debug(): ReactElement {
|
||||
const { debug, setDebug } = useUserPreferences()
|
||||
|
||||
return (
|
||||
<li>
|
||||
<Input
|
||||
<InputElement
|
||||
name="debug"
|
||||
label="Debug Mode"
|
||||
help="Show geeky debug information in some places."
|
||||
type="checkbox"
|
||||
options={['Activate Debug Mode']}
|
||||
options={['Debug Mode']}
|
||||
defaultChecked={debug === true}
|
||||
onChange={() => setDebug(!debug)}
|
||||
/>
|
||||
<FormHelp>Show geeky debug information in some places.</FormHelp>
|
||||
</li>
|
||||
)
|
||||
}
|
||||
|
@ -29,7 +29,8 @@
|
||||
margin-bottom: calc(var(--spacer) / 2);
|
||||
}
|
||||
|
||||
.preferencesDetails li:last-child {
|
||||
.preferencesDetails li:last-child,
|
||||
.preferencesDetails li:last-child p {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user