2021-03-05 08:00:28 -05:00
|
|
|
import HotkeysModal from '../js/features/hotkeys-modal/components/hotkeys-modal'
|
2024-10-10 03:26:18 -04:00
|
|
|
import { bsVersionDecorator } from '../../.storybook/utils/with-bootstrap-switcher'
|
2020-12-10 06:13:59 -05:00
|
|
|
|
2021-03-05 08:00:28 -05:00
|
|
|
export const ReviewEnabled = args => {
|
|
|
|
return <HotkeysModal {...args} />
|
|
|
|
}
|
|
|
|
|
|
|
|
export const ReviewDisabled = args => {
|
|
|
|
return <HotkeysModal {...args} trackChangesVisible={false} />
|
|
|
|
}
|
|
|
|
|
|
|
|
export const MacModifier = args => {
|
|
|
|
return <HotkeysModal {...args} isMac />
|
|
|
|
}
|
2020-12-10 06:13:59 -05:00
|
|
|
|
|
|
|
export default {
|
2022-03-28 06:23:21 -04:00
|
|
|
title: 'Editor / Modals / Hotkeys',
|
2021-03-05 08:00:28 -05:00
|
|
|
component: HotkeysModal,
|
2020-12-10 06:13:59 -05:00
|
|
|
args: {
|
2021-03-05 08:00:28 -05:00
|
|
|
animation: false,
|
|
|
|
show: true,
|
|
|
|
isMac: false,
|
2021-04-27 03:52:58 -04:00
|
|
|
trackChangesVisible: true,
|
2020-12-10 06:13:59 -05:00
|
|
|
},
|
|
|
|
argTypes: {
|
2021-04-27 03:52:58 -04:00
|
|
|
handleHide: { action: 'handleHide' },
|
2024-10-10 03:26:18 -04:00
|
|
|
...bsVersionDecorator.argTypes,
|
2021-04-27 03:52:58 -04:00
|
|
|
},
|
2020-12-10 06:13:59 -05:00
|
|
|
}
|