mirror of https://github.com/mue/mue.git
fix(experimental): Use button component
This commit is contained in:
parent
e7630e9357
commit
d931aa13b7
|
@ -1,13 +1,13 @@
|
||||||
import variables from 'config/variables';
|
import variables from 'config/variables';
|
||||||
import { useState, memo } from 'react';
|
import { useState, memo } from 'react';
|
||||||
import Checkbox from '../../../components/Form/Settings/Checkbox/Checkbox';
|
import { Checkbox, Slider } from 'components/Form/Settings';
|
||||||
import Slider from '../../../components/Form/Settings/Slider/Slider';
|
import { Button } from 'components/Elements';
|
||||||
import { TextField } from '@mui/material';
|
import { TextField } from '@mui/material';
|
||||||
|
|
||||||
import EventBus from 'utils/eventbus';
|
import EventBus from 'utils/eventbus';
|
||||||
import values from 'utils/data/slider_values.json';
|
import values from 'utils/data/slider_values.json';
|
||||||
|
|
||||||
import { Row, Content, Action } from '../../../components/Layout/Settings/Item/SettingsItem';
|
import { Row, Content, Action } from 'components/Layout/Settings/Item/SettingsItem';
|
||||||
|
|
||||||
function ExperimentalOptions() {
|
function ExperimentalOptions() {
|
||||||
const [eventType, setEventType] = useState();
|
const [eventType, setEventType] = useState();
|
||||||
|
@ -54,21 +54,17 @@ function ExperimentalOptions() {
|
||||||
varient="outlined"
|
varient="outlined"
|
||||||
InputLabelProps={{ shrink: true }}
|
InputLabelProps={{ shrink: true }}
|
||||||
/>
|
/>
|
||||||
<button className="uploadbg" onClick={() => EventBus.emit(eventType, eventName)}>
|
<Button
|
||||||
Send
|
type="settings"
|
||||||
</button>
|
onClick={() => EventBus.emit(eventType, eventName)}
|
||||||
|
label="send"
|
||||||
|
/>
|
||||||
</Action>
|
</Action>
|
||||||
</Row>
|
</Row>
|
||||||
<Row final={true}>
|
<Row final={true}>
|
||||||
<Content title="Data" />
|
<Content title="Data" />
|
||||||
<Action>
|
<Action>
|
||||||
<button
|
<Button type="settings" onClick={() => localStorage.clear()} label="Clear LocalStorage" />
|
||||||
className="reset"
|
|
||||||
style={{ marginLeft: '0px' }}
|
|
||||||
onClick={() => localStorage.clear()}
|
|
||||||
>
|
|
||||||
Clear LocalStorage
|
|
||||||
</button>
|
|
||||||
</Action>
|
</Action>
|
||||||
</Row>
|
</Row>
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in New Issue