mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2026-03-07 13:21:21 +03:00
* chore(deps): update dependency prettier to v3 * Format --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nathan Bierema <nbierema@gmail.com>
48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
import React from 'react';
|
|
import EditorGroup from './EditorGroup';
|
|
import FilterGroup from './FilterGroup';
|
|
import AllowToRunGroup from './AllowToRunGroup';
|
|
import MiscellaneousGroup from './MiscellaneousGroup';
|
|
import ContextMenuGroup from './ContextMenuGroup';
|
|
import { Options } from './syncOptions';
|
|
|
|
export interface OptionsProps {
|
|
readonly options: Options;
|
|
readonly saveOption: <K extends keyof Options>(
|
|
name: K,
|
|
value: Options[K],
|
|
) => void;
|
|
}
|
|
|
|
export default (props: OptionsProps) => (
|
|
<div>
|
|
<EditorGroup {...props} />
|
|
<FilterGroup {...props} />
|
|
<AllowToRunGroup {...props} />
|
|
<MiscellaneousGroup {...props} />
|
|
<ContextMenuGroup {...props} />
|
|
<div style={{ color: 'red' }}>
|
|
<br />
|
|
<hr />
|
|
Setting options here is discouraged, and will not be possible in the next
|
|
major release. Please{' '}
|
|
<a
|
|
href="https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md"
|
|
target="_blank"
|
|
style={{ color: 'red' }}
|
|
>
|
|
specify them as parameters
|
|
</a>
|
|
. See{' '}
|
|
<a
|
|
href="https://github.com/zalmoxisus/redux-devtools-extension/issues/296"
|
|
target="_blank"
|
|
style={{ color: 'red' }}
|
|
>
|
|
the issue
|
|
</a>{' '}
|
|
for more details.
|
|
</div>
|
|
</div>
|
|
);
|