feat: integrate balance sheet and P&L sheet with new API.

This commit is contained in:
a.bouhuolia
2022-01-30 15:57:27 +02:00
parent fa455152a3
commit 3d78d2d051
13 changed files with 147 additions and 256 deletions

View File

@@ -1,18 +1,60 @@
import React from 'react';
import classNames from 'classnames';
import { DashboardInsider } from 'components';
import styled from 'styled-components';
import { CLASSES } from 'common/classes';
import 'style/pages/FinancialStatements/FinancialReportPage.scss';
/**
* Financial report page.
*/
export default function FinancialReportPage(props) {
return (
<DashboardInsider
<FinancialReportPageRoot
{...props}
className={classNames(CLASSES.FINANCIAL_REPORT_INSIDER, props.className)}
/>
);
}
export const FinancialComputeAlert = styled.div`
position: relative;
padding: 8px 20px;
border-radius: 2px;
background-color: #fdecda;
color: #342515;
font-size: 13px;
button {
font-size: 12px;
min-height: 16px;
padding: 0 4px;
&,
&:hover {
color: #824400;
text-decoration: underline;
}
}
svg {
margin-right: 6px;
position: relative;
top: -2px;
fill: #975f19;
}
`;
export const FinancialProgressbar = styled.div`
.progress-materializecss {
top: -2px;
}
`;
export const FinancialReportPageRoot = styled(DashboardInsider)``;
export const FinancialReportBody = styled.div`
padding-left: 15px;
padding-right: 15px;
display: flex;
justify-content: center;
align-items: center;
`;