-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix contribution publish for the container deployments
Signed-off-by: Anil Vishnoi <[email protected]>
- Loading branch information
1 parent
7b3445c
commit 08f8a2b
Showing
14 changed files
with
79 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
// src/app/contribute/knowledge/page.tsx | ||
import KnowledgeFormNative from '@/components/Contribute/Knowledge/Native'; | ||
import * as React from 'react'; | ||
import { AppLayout } from '../../../components/AppLayout'; | ||
import { KnowledgeFormGithub } from '../../../components/Contribute/Knowledge/Github'; | ||
'use client'; | ||
import { AppLayout } from '@/components/AppLayout'; | ||
import { KnowledgeFormGithub } from '@/components/Contribute/Knowledge/Github/index'; | ||
import KnowledgeFormNative from '@/components/Contribute/Knowledge/Native/index'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
const KnowledgeFormPage: React.FC = () => { | ||
return <AppLayout>{process.env.IL_UI_DEPLOYMENT === 'native' ? <KnowledgeFormNative /> : <KnowledgeFormGithub />}</AppLayout>; | ||
const KnowledgeFormPage: React.FunctionComponent = () => { | ||
const [deploymentType, setDeploymentType] = useState<string | undefined>(); | ||
|
||
useEffect(() => { | ||
const getEnvVariables = async () => { | ||
const res = await fetch('/api/envConfig'); | ||
const envConfig = await res.json(); | ||
setDeploymentType(envConfig.DEPLOYMENT_TYPE); | ||
}; | ||
getEnvVariables(); | ||
}, []); | ||
|
||
return <AppLayout>{deploymentType === 'native' ? <KnowledgeFormNative /> : <KnowledgeFormGithub />}</AppLayout>; | ||
}; | ||
|
||
export default KnowledgeFormPage; |
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 |
---|---|---|
@@ -1,11 +1,23 @@ | ||
// src/app/contribute/skill/page.tsx | ||
import SkillFormNative from '@/components/Contribute/Skill/Native'; | ||
import * as React from 'react'; | ||
import { AppLayout } from '../../../components/AppLayout'; | ||
import { SkillFormGithub } from '../../../components/Contribute/Skill/Github'; | ||
'use client'; | ||
import { AppLayout } from '@/components/AppLayout'; | ||
import { SkillFormGithub } from '@/components/Contribute/Skill/Github/index'; | ||
import { SkillFormNative } from '@/components/Contribute/Skill/Native/index'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
const SkillFormPage: React.FC = () => { | ||
return <AppLayout>{process.env.IL_UI_DEPLOYMENT === 'native' ? <SkillFormNative /> : <SkillFormGithub />}</AppLayout>; | ||
const SkillFormPage: React.FunctionComponent = () => { | ||
const [deploymentType, setDeploymentType] = useState<string | undefined>(); | ||
|
||
useEffect(() => { | ||
const getEnvVariables = async () => { | ||
const res = await fetch('/api/envConfig'); | ||
const envConfig = await res.json(); | ||
setDeploymentType(envConfig.DEPLOYMENT_TYPE); | ||
}; | ||
getEnvVariables(); | ||
}, []); | ||
|
||
return <AppLayout>{deploymentType === 'native' ? <SkillFormNative /> : <SkillFormGithub />}</AppLayout>; | ||
}; | ||
|
||
export default SkillFormPage; |
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
2 changes: 1 addition & 1 deletion
2
src/components/Contribute/Knowledge/DownloadAttribution/DownloadAttribution.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
2 changes: 1 addition & 1 deletion
2
src/components/Contribute/Knowledge/DownloadDropdown/DownloadDropdown.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
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
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
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
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