Browse Source

set divider to optional

master
jeffvli 3 years ago
parent
commit
661ded3775
  1. 4
      src/components/layout/GenericPage.tsx

4
src/components/layout/GenericPage.tsx

@ -2,11 +2,11 @@ import React from 'react';
import { Container, Header, Content, Divider } from 'rsuite';
import '../../styles/GenericPage.global.css';
const GenericPage = ({ header, children }: any) => {
const GenericPage = ({ header, children, hideDivider }: any) => {
return (
<Container id="page" className="container__page">
<Header className="page__header">{header}</Header>
<Divider />
{!hideDivider && <Divider />}
<Content className="page__content">{children}</Content>
</Container>
);

Loading…
Cancel
Save