-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Navigation to use react-router-dom v6 (#250)
Signed-off-by: Griffin-Sullivan <gsulliva@redhat.com>
- Loading branch information
1 parent
93f542d
commit 869fb58
Showing
13 changed files
with
285 additions
and
566 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import * as React from 'react'; | ||
import '@patternfly/react-core/dist/styles/base.css'; | ||
import AppRoutes from '@app/AppRoutes'; | ||
import '@app/app.css'; | ||
import { | ||
Flex, | ||
Masthead, | ||
MastheadContent, | ||
MastheadToggle, | ||
Page, | ||
PageToggleButton, | ||
Title | ||
} from '@patternfly/react-core'; | ||
import NavSidebar from './NavSidebar'; | ||
import { BarsIcon } from '@patternfly/react-icons'; | ||
|
||
const App: React.FC = () => { | ||
const masthead = ( | ||
<Masthead> | ||
<MastheadToggle> | ||
<PageToggleButton id="page-nav-toggle" variant="plain" aria-label="Dashboard navigation"> | ||
<BarsIcon /> | ||
</PageToggleButton> | ||
</MastheadToggle> | ||
|
||
<MastheadContent> | ||
<Flex> | ||
<Title headingLevel="h2" size="3xl"> | ||
Kubeflow Model Registry UI | ||
</Title> | ||
</Flex> | ||
</MastheadContent> | ||
</Masthead> | ||
); | ||
|
||
return ( | ||
<Page | ||
mainContainerId='primary-app-container' | ||
masthead={masthead} | ||
isManagedSidebar | ||
sidebar={<NavSidebar />} | ||
> | ||
<AppRoutes /> | ||
</Page> | ||
); | ||
}; | ||
|
||
export default App; |
Oops, something went wrong.