diff --git a/client/src/common/quickNewOptions.js b/client/src/common/quickNewOptions.js new file mode 100644 index 000000000..d8b3b5003 --- /dev/null +++ b/client/src/common/quickNewOptions.js @@ -0,0 +1,8 @@ +export default [ + { id: 'invoices', name: 'Sale invoice' }, + { id: 'Purchase invoice', name: 'Purchase invoice' }, + { id: 'manual-journals', name: 'Manual journal' }, + { id: 'expenses', name: 'Expense' }, + { id: 'customers', name: 'Customer' }, + { id: 'vendors', name: 'Vendor' }, +]; diff --git a/client/src/components/Dashboard/DashboardTopbar.js b/client/src/components/Dashboard/DashboardTopbar.js index 591586207..0aa03bc72 100644 --- a/client/src/components/Dashboard/DashboardTopbar.js +++ b/client/src/components/Dashboard/DashboardTopbar.js @@ -19,7 +19,7 @@ import { Icon, Hint, If } from 'components'; import withSearch from 'containers/GeneralSearch/withSearch'; import withDashboardActions from 'containers/Dashboard/withDashboardActions'; import withDashboard from 'containers/Dashboard/withDashboard'; - +import QuickNewDropdown from 'containers/QuickNewDropdown/QuickNewDropdown'; import { compose } from 'utils'; function DashboardTopbar({ @@ -48,6 +48,7 @@ function DashboardTopbar({ toggleSidebarExpend(); recordSidebarPreviousExpand(); }; + return (
@@ -128,11 +129,7 @@ function DashboardTopbar({ icon={} text={} /> -