forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Signed-off-by: Griffin-Sullivan <[email protected]>
- Loading branch information
1 parent
bbb03fb
commit 6d7afc5
Showing
11 changed files
with
235 additions
and
360 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.