mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
feat: keyboardshortcuts dialog.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import React, { lazy } from 'react';
|
||||
import { FormattedMessage as T, useIntl } from 'react-intl';
|
||||
import { Dialog, DialogSuspense } from 'components';
|
||||
import withDialogRedux from 'components/DialogReduxConnect';
|
||||
import { compose } from 'utils';
|
||||
|
||||
const KeyboardShortcutsContent = lazy(() =>
|
||||
import('./KeyboardShortcutsDialogContent'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Keyboard shortcuts dialog.
|
||||
*/
|
||||
function KeyboardShortcutsDialog({ dialogName, isOpen }) {
|
||||
return (
|
||||
<Dialog
|
||||
name={dialogName}
|
||||
isOpen={isOpen}
|
||||
className={'dialog--keyboard-shortcuts'}
|
||||
title={<T id={'keyboard_shortcuts'} canEscapeKeyClose={true} />}
|
||||
>
|
||||
<DialogSuspense>
|
||||
<KeyboardShortcutsContent />
|
||||
</DialogSuspense>
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
export default compose(withDialogRedux())(KeyboardShortcutsDialog);
|
||||
Reference in New Issue
Block a user