mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
59f6f34083
Refactor "HotKeys" modal GitOrigin-RevId: 1df86322bac229bb04092e872300e5f1ee4cbddc
29 lines
608 B
JavaScript
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' }
|
|
}
|
|
}
|