2021-08-26 11:50:47 +05:30
|
|
|
import { Col,Row } from 'antd';
|
|
|
|
|
import ROUTES from 'constants/routes';
|
|
|
|
|
import React from 'react';
|
|
|
|
|
import { useHistory } from 'react-router-dom';
|
2021-04-24 02:29:12 +05:30
|
|
|
|
2021-08-26 11:50:47 +05:30
|
|
|
import DateTimeSelector from './DateTimeSelector';
|
|
|
|
|
import ShowBreadcrumbs from './ShowBreadcrumbs';
|
2021-04-24 02:29:12 +05:30
|
|
|
|
|
|
|
|
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;
|