Skip to content

Commit 5f92858

Browse files
author
Oleksandr_Halichenko
committed
updated links to hash links
1 parent 0de05b6 commit 5f92858

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/AppHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ export const AppHeader = () => {
77
<MainMenu cx={css.header}>
88
<LinkButton
99
caption='@qavajs/html-formatter'
10-
link={ { pathname: '/' } }
10+
href='#/'
1111
size='48'
1212
cx={css.title}
1313
captionCX={css.caption}
1414
/>
1515
<FlexSpacer/>
1616
<LinkButton
1717
caption='Failed Scenarios'
18-
link={ { pathname: '/failed-scenarios' } }
18+
href='#/failed-scenarios'
1919
size='48'
2020
cx={css.failedTitle}
2121
captionCX={css.caption}

src/components/Features.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const featureColumns: DataColumnProps<Feature>[] = [
2525
{
2626
key: 'name',
2727
caption: 'Name',
28-
render: item => <LinkButton caption={item.name} link={ { pathname: `/feature/${item.id}` } } size='42' />,
28+
render: item => <LinkButton caption={item.name} href={`#/feature/${item.id}`} size='42' />,
2929
isSortable: true,
3030
width: 400
3131
},

src/index.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import { Router } from 'react-router-dom';
3+
import { HashRouter } from 'react-router-dom';
44
import { createBrowserHistory } from 'history';
55
import { ContextProvider } from '@epam/uui-core';
66
import { Snackbar, Modals } from '@epam/uui-components';
@@ -10,7 +10,6 @@ import '@epam/promo/styles.css';
1010
import { App } from './App';
1111
import { svc } from './services';
1212

13-
1413
const history = createBrowserHistory();
1514

1615
const UuiEnhancedApp = () => (
@@ -29,9 +28,9 @@ const UuiEnhancedApp = () => (
2928
);
3029

3130
const RoutedApp = () => (
32-
<Router history={ history }>
31+
<HashRouter>
3332
<UuiEnhancedApp />
34-
</Router>
33+
</HashRouter>
3534
);
3635

37-
ReactDOM.render(<RoutedApp />, document.getElementById('root'));
36+
ReactDOM.render(<RoutedApp />, document.getElementById('root'));

0 commit comments

Comments
 (0)