fix(ui): small code fixes

This commit is contained in:
sylenien 2022-06-30 12:31:55 +02:00 committed by Delirium
parent 0313610111
commit d44d3dc82b
5 changed files with 6 additions and 9 deletions

View file

@ -91,4 +91,4 @@ function SessionSearch(props: Props) {
export default connect((state: any) => ({
saveRequestPayloads: state.getIn(['site', 'active', 'saveRequestPayloads']),
appliedFilter: state.getIn([ 'search', 'instance' ]),
}), { edit, addFilter })(SessionSearch);
}), { edit, addFilter })(SessionSearch);

View file

@ -1,12 +1,11 @@
import React from 'react';
import { useObserver } from 'mobx-react-lite';
import ListingVisibility from './components/ListingVisibility';
import DefaultPlaying from './components/DefaultPlaying';
import DefaultTimezone from './components/DefaultTimezone';
import CaptureRate from './components/CaptureRate';
function SessionSettings() {
return useObserver(() => (
return (
<div className="bg-white box-shadow h-screen overflow-y-auto" style={{ width: '450px'}}>
<div className="px-6 pt-6">
<h1 className="text-2xl">Sessions Settings</h1>
@ -28,7 +27,7 @@ function SessionSettings() {
<CaptureRate />
</div>
</div>
));
);
}
export default SessionSettings;
export default SessionSettings

View file

@ -4,8 +4,6 @@ import { Button, Input } from 'UI';
import { useStore } from 'App/mstore';
import { observer } from 'mobx-react-lite';
import { toast } from 'react-toastify';
import { connect } from 'react-redux';
import { fetchSessions } from 'Duck/search';
const numberOptions = [
{ label: 'Less than', value: '<' },

View file

@ -391,4 +391,4 @@ export const updateValue = (filterType, index, value) => {
index,
value
}
}
}

View file

@ -96,4 +96,4 @@ export default class Filter implements IFilter {
}
return json
}
}
}