mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
WIP
This commit is contained in:
@@ -1,37 +1,26 @@
|
||||
import React from 'react';
|
||||
import React, { useEffect } from 'react';
|
||||
import DashboardActionsBar from 'components/Dashboard/DashboardActionsBar';
|
||||
import DashboardPageContent from 'components/Dashboard/DashboardPageContent';
|
||||
import {
|
||||
Cell,
|
||||
Column,
|
||||
ColumnHeaderCell,
|
||||
CopyCellsMenuItem,
|
||||
IMenuContext,
|
||||
SelectionModes,
|
||||
Table,
|
||||
Utils,
|
||||
} from "@blueprintjs/table";
|
||||
import { connect } from 'react-redux';
|
||||
import t from 'store/types';
|
||||
|
||||
function RecordSortableColumn() {
|
||||
function AccountsChart({ changePageTitle }) {
|
||||
useEffect(() => {
|
||||
changePageTitle('Chart of Accounts');
|
||||
});
|
||||
return (
|
||||
<Menu>
|
||||
<MenuItem
|
||||
icon="sort-asc"
|
||||
text="Sort Wins Asc"
|
||||
/>
|
||||
<MenuItem
|
||||
icon="sort-desc"
|
||||
text="Sort Wins Desc"
|
||||
/>
|
||||
</Menu>
|
||||
<React.Fragment>
|
||||
<DashboardActionsBar />
|
||||
<DashboardPageContent>
|
||||
|
||||
</DashboardPageContent>
|
||||
</React.Fragment>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export default function AccountsChart() {
|
||||
return (
|
||||
<DashboardActionsBar />
|
||||
<DashboardPageContent>
|
||||
|
||||
</DashboardPageContent>
|
||||
);
|
||||
}
|
||||
const mapActionsToProps = (dispatch) => ({
|
||||
changePageTitle: pageTitle => dispatch({
|
||||
type: t.CHANGE_DASHBOARD_PAGE_TITLE, pageTitle
|
||||
}),
|
||||
});
|
||||
export default connect(null, mapActionsToProps)(AccountsChart);
|
||||
@@ -1,7 +1,19 @@
|
||||
import React from 'react';
|
||||
import React, { useEffect } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import t from 'store/types';
|
||||
|
||||
export default function DashboardHomepage() {
|
||||
const DashboardHomepage = ({ changePageTitle }) => {
|
||||
useEffect(() => {
|
||||
changePageTitle('Homepage')
|
||||
});
|
||||
return (
|
||||
<div>asdasd</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const mapActionsToProps = (dispatch) => ({
|
||||
changePageTitle: pageTitle => dispatch({
|
||||
type: t.CHANGE_DASHBOARD_PAGE_TITLE, pageTitle
|
||||
}),
|
||||
});
|
||||
export default connect(null, mapActionsToProps)(DashboardHomepage);
|
||||
Reference in New Issue
Block a user