mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
* Add and configure eslint-plugin-import * Fix the lint:ts npm command * Autofix + prettier all the files * Manually fix remaining files * Move jquery code in jest-setup to external file to safely reorder imports * Resolve issue caused by circular dependencies within Prometheus * Update .betterer.results * Fix missing // @ts-ignore * ignore iconBundle.ts * Fix missing // @ts-ignore
37 lines
879 B
TypeScript
37 lines
879 B
TypeScript
import React from 'react';
|
|
import { Link, NavLink } from 'react-router-dom';
|
|
|
|
import { RouterDebugger } from './RouterDebugger';
|
|
import { RouteDescriptor } from './types';
|
|
|
|
export const testRoutes: RouteDescriptor[] = [
|
|
{
|
|
path: '/test1',
|
|
// eslint-disable-next-line react/display-name
|
|
component: () =>
|
|
(
|
|
<>
|
|
<h1>Test1</h1>
|
|
<Link to={'/test2'}>Test2 link</Link>
|
|
<NavLink to={'/test2'}>Test2 navlink</NavLink>
|
|
</>
|
|
) as any,
|
|
},
|
|
{
|
|
path: '/test2',
|
|
// eslint-disable-next-line react/display-name
|
|
component: () => (
|
|
<>
|
|
<h1>Test2 </h1>
|
|
<Link to={'/test1'}>Test1 link</Link>
|
|
<NavLink to={'/test1'}>Test1 navlink</NavLink>
|
|
</>
|
|
),
|
|
},
|
|
{
|
|
path: '/router-debug',
|
|
// eslint-disable-next-line react/display-name
|
|
component: () => RouterDebugger,
|
|
},
|
|
];
|