hotkeys-modal.stories.js 587 B

123456789101112131415161718192021222324252627
  1. import HotkeysModal from '../js/features/hotkeys-modal/components/hotkeys-modal'
  2. export const ReviewEnabled = args => {
  3. return <HotkeysModal {...args} />
  4. }
  5. export const ReviewDisabled = args => {
  6. return <HotkeysModal {...args} trackChangesVisible={false} />
  7. }
  8. export const MacModifier = args => {
  9. return <HotkeysModal {...args} isMac />
  10. }
  11. export default {
  12. title: 'Modals / Hotkeys',
  13. component: HotkeysModal,
  14. args: {
  15. animation: false,
  16. show: true,
  17. isMac: false,
  18. trackChangesVisible: true,
  19. },
  20. argTypes: {
  21. handleHide: { action: 'handleHide' },
  22. },
  23. }