mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
37
src/containers/KeyboardShortcuts/ShortcutsTable.js
Normal file
37
src/containers/KeyboardShortcuts/ShortcutsTable.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import React, { useMemo } from 'react';
|
||||
import { DataTable } from 'components';
|
||||
import { FormattedMessage as T } from 'components';
|
||||
import intl from 'react-intl-universal';
|
||||
import keyboardShortcuts from 'common/keyboardShortcutsOptions';
|
||||
|
||||
/**
|
||||
* keyboard shortcuts table.
|
||||
*/
|
||||
function ShortcutsTable() {
|
||||
|
||||
|
||||
const columns = useMemo(
|
||||
() => [
|
||||
{
|
||||
Header: intl.get('shortcut_keys'),
|
||||
accessor: 'shortcut_key',
|
||||
disableSortBy: true,
|
||||
className: 'shortcut_key',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
id: 'description',
|
||||
Header: intl.get('description'),
|
||||
accessor: 'description',
|
||||
disableSortBy: true,
|
||||
className: 'description',
|
||||
width: 250,
|
||||
},
|
||||
],
|
||||
[],
|
||||
);
|
||||
|
||||
return <DataTable columns={columns} data={keyboardShortcuts} />;
|
||||
}
|
||||
|
||||
export default ShortcutsTable;
|
||||
Reference in New Issue
Block a user