-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1e5653
commit fe89587
Showing
4 changed files
with
59 additions
and
28 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
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
31 changes: 31 additions & 0 deletions
31
packages/website/src/pages/packages/[name]/[tag]/[variant]/deployment/index.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,31 @@ | ||
import dynamic from 'next/dynamic'; | ||
import { useRouter } from 'next/router'; | ||
|
||
import TagVariantLayout from '../_layout'; | ||
import { ReactElement } from 'react'; | ||
|
||
const DeploymentTab = dynamic( | ||
async () => { | ||
return import('@/features/Packages/Tabs/DeploymentTab'); | ||
}, | ||
{ | ||
ssr: false, | ||
} | ||
); | ||
|
||
export default function Deployment() { | ||
const params = useRouter().query; | ||
return ( | ||
<> | ||
<DeploymentTab | ||
name={decodeURIComponent(params.name as string)} | ||
tag={decodeURIComponent(params.tag as string)} | ||
variant={decodeURIComponent(params.variant as string)} | ||
/> | ||
</> | ||
); | ||
} | ||
|
||
Deployment.getLayout = function getLayout(page: ReactElement) { | ||
return <TagVariantLayout>{page}</TagVariantLayout>; | ||
}; |
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