mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
771a39f267
Migrate hotkeys modal to React GitOrigin-RevId: 78399d3d62771cd296bdc2f4f8b1083263d31551
24 lines
579 B
JavaScript
24 lines
579 B
JavaScript
import React from 'react'
|
|
|
|
import HotkeysModalContent from '../js/features/hotkeys-modal/components/hotkeys-modal-content'
|
|
|
|
// NOTE: HotkeysModalContent is wrapped in modal classes, without modal behaviours
|
|
export const Basic = args => (
|
|
<div className="modal-lg modal-dialog">
|
|
<div className="modal-content">
|
|
<HotkeysModalContent {...args} />
|
|
</div>
|
|
</div>
|
|
)
|
|
|
|
export default {
|
|
title: 'Hotkeys Modal',
|
|
component: HotkeysModalContent,
|
|
args: {
|
|
isMac: true,
|
|
trackChangesVisible: true
|
|
},
|
|
argTypes: {
|
|
handleHide: { action: 'handleHide' }
|
|
}
|
|
}
|