29 lines
538 B
TypeScript
Raw Normal View History

import { Col,Row } from 'antd';
import ROUTES from 'constants/routes';
import React from 'react';
import { useHistory } from 'react-router-dom';
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;