-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a new tab and page via TapisUI Extension feature
- Loading branch information
1 parent
e45cfe1
commit 1aea601
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
28 changes: 28 additions & 0 deletions
28
packages/icicle-tapisui-extension/src/pages/TrainingCatalog/TrainingCatalog.tsx
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,28 @@ | ||
import * as React from 'react'; | ||
import { SectionHeader } from '@tapis/tapisui-common'; | ||
import { Component } from '@tapis/tapisui-extensions-core'; | ||
|
||
export const TrainingCatalog: Component = ({ accessToken }) => { | ||
return ( | ||
<div | ||
style={{ | ||
width: '100%', | ||
height: '100%', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
overflow: 'hidden', | ||
}} | ||
> | ||
{accessToken ? ( | ||
<iframe | ||
style={{ flexGrow: 1, border: 'none' }} | ||
src={`https://davidl0914.github.io/mkdocs-testing/`} | ||
/> | ||
) : ( | ||
<>Invalid JWT. Log out of TapisUI then log back in</> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default TrainingCatalog; |
1 change: 1 addition & 0 deletions
1
packages/icicle-tapisui-extension/src/pages/TrainingCatalog/index.ts
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 @@ | ||
export { default as TrainingCatalog } from './TrainingCatalog'; |