overleaf/services/web/frontend/stories/hotkeys-modal.stories.js
Alf Eaton 59f6f34083 Merge pull request #3710 from overleaf/ae-refactor-hotkeys-modal
Refactor "HotKeys" modal

GitOrigin-RevId: 1df86322bac229bb04092e872300e5f1ee4cbddc
2021-03-06 03:04:46 +00:00

29 lines
608 B
JavaScript

import React from 'react'
import HotkeysModal from '../js/features/hotkeys-modal/components/hotkeys-modal'
export const ReviewEnabled = args => {
return <HotkeysModal {...args} />
}
export const ReviewDisabled = args => {
return <HotkeysModal {...args} trackChangesVisible={false} />
}
export const MacModifier = args => {
return <HotkeysModal {...args} isMac />
}
export default {
title: 'Hotkeys Modal',
component: HotkeysModal,
args: {
animation: false,
show: true,
isMac: false,
trackChangesVisible: true
},
argTypes: {
handleHide: { action: 'handleHide' }
}
}