mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
actionListHeaderWrapper
This commit is contained in:
parent
498e7aa1b4
commit
6f7649b169
|
@ -5,6 +5,7 @@ import {
|
||||||
actionListHeaderCss,
|
actionListHeaderCss,
|
||||||
actionListHeaderSearchCss,
|
actionListHeaderSearchCss,
|
||||||
actionListHeaderSelectorCss,
|
actionListHeaderSelectorCss,
|
||||||
|
actionListHeaderWrapperCss,
|
||||||
} from './utils/createStylingFromTheme';
|
} from './utils/createStylingFromTheme';
|
||||||
|
|
||||||
const getActiveButtons = (hasSkippedActions: boolean): ('Sweep' | 'Commit')[] =>
|
const getActiveButtons = (hasSkippedActions: boolean): ('Sweep' | 'Commit')[] =>
|
||||||
|
@ -41,7 +42,7 @@ const ActionListHeader: FunctionComponent<Props> = ({
|
||||||
value={searchValue}
|
value={searchValue}
|
||||||
/>
|
/>
|
||||||
{!hideMainButtons && (
|
{!hideMainButtons && (
|
||||||
<div {...styling('actionListHeaderWrapper')}>
|
<div css={actionListHeaderWrapperCss}>
|
||||||
<RightSlider shown={hasStagedActions} styling={styling}>
|
<RightSlider shown={hasStagedActions} styling={styling}>
|
||||||
<div css={actionListHeaderSelectorCss}>
|
<div css={actionListHeaderSelectorCss}>
|
||||||
{getActiveButtons(hasSkippedActions).map((btn) => (
|
{getActiveButtons(hasSkippedActions).map((btn) => (
|
||||||
|
|
|
@ -179,12 +179,12 @@ export const actionListHeaderSearchCss: Interpolation<Theme> = (theme) => ({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const getSheetFromColorMap = (map: ColorMap) => ({
|
export const actionListHeaderWrapperCss = css({
|
||||||
actionListHeaderWrapper: {
|
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
height: '20px',
|
height: '20px',
|
||||||
},
|
});
|
||||||
|
|
||||||
|
const getSheetFromColorMap = (map: ColorMap) => ({
|
||||||
actionPreview: {
|
actionPreview: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user