mirror of
https://github.com/SigNoz/signoz.git
synced 2026-09-20 10:20:48 +01:00
* chore: updated eslint base config with comments * chore: add eslint rules for no-else-return and curly * chore: use isNumber from lodash-es * chore: add eslint rules for no-console * chore: update eslint overrides * chore: sort all files * chore: fix tests
21 lines
595 B
TypeScript
21 lines
595 B
TypeScript
import { useLocation } from 'react-use';
|
|
import RouteTab from 'components/RouteTab';
|
|
import { TabRoutes } from 'components/RouteTab/types';
|
|
import history from 'lib/history';
|
|
|
|
import { logSaveView, logsExplorer, logsPipelines } from './constants';
|
|
|
|
import './LogsModulePage.styles.scss';
|
|
|
|
export default function LogsModulePage(): JSX.Element {
|
|
const { pathname } = useLocation();
|
|
|
|
const routes: TabRoutes[] = [logsExplorer, logsPipelines, logSaveView];
|
|
|
|
return (
|
|
<div className="logs-module-container">
|
|
<RouteTab routes={routes} activeKey={pathname} history={history} />
|
|
</div>
|
|
);
|
|
}
|