-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(generator): update custom hook folder
ref: MANAGER-11571 Signed-off-by: Alex Boungnaseng <alex.boungnaseng.ext@corp.ovh.com>
- Loading branch information
1 parent
781bc4c
commit 1663b50
Showing
43 changed files
with
183 additions
and
644 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
92 changes: 0 additions & 92 deletions
92
...er/core/generator/app/conditional-templates/dashboard/[serviceName]/Tabs1/TileExemple.tsx
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/manager/core/generator/app/conditional-templates/dashboard/dashboard.test.ts.hbs
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
File renamed without changes.
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
68 changes: 68 additions & 0 deletions
68
packages/manager/core/generator/app/conditional-templates/onboarding/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,68 @@ | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { Card, OnboardingLayout } from '@ovhcloud/manager-components'; | ||
import useGuideUtils from '@/hooks/guide/useGuideUtils'; | ||
import Breadcrumb from '@/components/Breadcrumb/Breadcrumb'; | ||
import onboardingImgSrc from './onboarding-img.png'; | ||
|
||
export default function Onboarding() { | ||
const { t } = useTranslation('onboarding'); | ||
const link = useGuideUtils(); | ||
|
||
const tileList = [ | ||
{ | ||
id: 1, | ||
texts: { | ||
title: t('guide1Title'), | ||
description: t('guide1Description'), | ||
category: t('guideCategory'), | ||
}, | ||
href: link?.guideLink1, | ||
}, | ||
{ | ||
id: 2, | ||
texts: { | ||
title: t('guide2Title'), | ||
description: t('guide2Description'), | ||
category: t('guideCategory'), | ||
}, | ||
href: link?.guideLink2, | ||
}, | ||
{ | ||
id: 3, | ||
texts: { | ||
title: t('guide3Title'), | ||
description: t('guide3Description'), | ||
category: t('guideCategory'), | ||
}, | ||
href: link?.guideLink3, | ||
}, | ||
]; | ||
|
||
const title: string = t('title'); | ||
const description: string = t('description'); | ||
const imgSrc = { | ||
src: onboardingImgSrc, | ||
}; | ||
|
||
return ( | ||
<> | ||
<Breadcrumb /> | ||
<OnboardingLayout | ||
title={title} | ||
img={imgSrc} | ||
description={description} | ||
orderButtonLabel={t('orderButtonLabel')} | ||
orderHref={t('orderButtonLink')} | ||
moreInfoButtonLabel={t('moreInfoButtonLabel')} | ||
moreInfoHref={t('moreInfoButtonLink')} | ||
> | ||
<aside className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8 pt-12"> | ||
{tileList.map((tile) => ( | ||
<Card key={tile.id} href={tile.href} texts={tile.texts} /> | ||
))} | ||
</aside> | ||
</OnboardingLayout> | ||
</> | ||
); | ||
} |
68 changes: 0 additions & 68 deletions
68
packages/manager/core/generator/app/conditional-templates/onboarding/index.tsx.hbs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.