29 lines
539 B
TypeScript
Raw Normal View History

2021-04-25 17:37:43 +05:30
import React from "react";
import { Row, Col } from "antd";
2021-04-24 03:51:31 +05:30
import { useHistory } from "react-router-dom";
import ROUTES from "constants/routes";
import DateTimeSelector from "./DateTimeSelector";
import ShowBreadcrumbs from "./ShowBreadcrumbs";
const TopNav = () => {
2021-04-24 03:51:31 +05:30
const history = useHistory();
2021-04-25 17:37:43 +05:30
if (history.location.pathname === ROUTES.SIGN_UP) {
2021-04-24 03:51:31 +05:30
return null;
}
return (
<Row>
<Col span={16}>
<ShowBreadcrumbs />
</Col>
<Col span={8}>
<DateTimeSelector />
</Col>
</Row>
);
};
export default TopNav;