Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"react-select": "^4.1.0",
"react-slick": "^0.27.13",
"reactstrap": "^8.9.0",
"recharts": "^2.0.8",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"slick-carousel": "^1.8.1",
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/MainLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Wrapper = styled.div``;
const MainLayout = ({ children }) => {
return (
<Wrapper>
<Notification />
{/* <Notification /> */}
<Header />
<NavBar />
<Wrapper>{children}</Wrapper>
Expand Down
19 changes: 7 additions & 12 deletions src/views/landing/components/ConsensusState.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import {
XAxis,
YAxis,
Tooltip,
ResponsiveContainer
ResponsiveContainer,
Legend
} from 'recharts';
import { useDispatch, useSelector } from 'react-redux';
import { getLandingPageData } from 'src/redux/socket/actions';
Expand Down Expand Up @@ -87,8 +88,9 @@ z-index: 101;
}
`;
const Graph = styled.div`
width: 100%;
width: 105%;
height: 80%;
margin-left: -40px;
tspan {
font-family: PoppinsRegular;
font-size: 12px;
Expand Down Expand Up @@ -247,16 +249,9 @@ const ConsensusState = () => {
</ResponsiveContainer> */}
<Graph>
<ResponsiveContainer>
<AreaChart
data={arr2}
margin={{
top: 10,
right: 30,
left: 0,
bottom: 0
}}>
<XAxis style={{ fontSize: '14px' }} dataKey="Time" />
<YAxis style={{ fontSize: '14px' }} />
<AreaChart data={arr2}>
<XAxis dataKey="Time" />
<YAxis interval={1} />
<Tooltip />
<Area
type="monotone"
Expand Down