2021-04-25 17:37:43 +05:30
|
|
|
import React from "react";
|
2021-04-24 02:29:12 +05:30
|
|
|
import { Row, Col } from "antd";
|
2021-04-24 03:51:31 +05:30
|
|
|
import { useHistory } from "react-router-dom";
|
2021-08-19 22:53:33 +05:30
|
|
|
import ROUTES from "constants/routes";
|
2021-04-24 02:29:12 +05:30
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
2021-04-24 02:29:12 +05:30
|
|
|
return (
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={16}>
|
|
|
|
|
<ShowBreadcrumbs />
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
<Col span={8}>
|
|
|
|
|
<DateTimeSelector />
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default TopNav;
|