Skip to content

Commit cc70860

Browse files
authored
fix(NA): fix git provider use cli link (#47)
## Why? Clear and short explanation here. ## How? - Done A (replace with a breakdown of the steps) - Done B - Done C ## Tickets? - [Ticket 1](the-ticket-url-here) - [Ticket 2](the-ticket-url-here) - [Ticket 3](the-ticket-url-here) ## Contribution checklist? - [ ] The commit messages are detailed - [ ] The `build` command runs locally - [ ] Assets or static content are linked and stored in the project - [ ] You've reviewed spelling using a grammar checker - [ ] For documentation, guides or references, you've tested the commands and steps - [ ] You've done enough research before writing ## Security checklist? - [ ] Sensitive data has been identified and is being protected properly - [ ] Injection has been prevented (parameterized queries, no eval or system calls) - [ ] The Components are escaping output (to prevent XSS) ## References? Optionally, provide references such as links ## Preview? Optionally, provide the preview url here
1 parent c19ccf8 commit cc70860

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.changeset/strong-points-work.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@fleek-platform/dashboard": patch
3+
---
4+
5+
fix git provider link to use cli

src/fragments/DeploySite/Steps/GitProvider/GitProvider.tsx

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import { routes } from '@fleek-platform/utils-routes';
22
import { useEffect, useState } from 'react';
33

4-
import { BadgeText, ExternalLink, RestrictionModal } from '@/components';
4+
import { BadgeText, RestrictionModal } from '@/components';
5+
import { Link } from '@/components/ftw/Link/Link';
56
import { constants } from '@/constants';
67
import { SourceProvider } from '@/generated/graphqlClient';
78
import { useSiteRestriction } from '@/hooks/useBillingRestriction';
89
import { usePermissions } from '@/hooks/usePermissions';
910
import { useRouter } from '@/hooks/useRouter';
1011
import { useSessionContext } from '@/providers/SessionProvider';
11-
import { Box, Button, Icon, IconName, Stepper, Text } from '@/ui';
12+
import { Box, Button, Icon, type IconName, Stepper, Text } from '@/ui';
1213

1314
import { useDeploySiteContext, useStepSetup } from '../../DeploySite.context';
1415

@@ -102,11 +103,11 @@ export const GitProviderStep: React.FC = () => {
102103
</Text>
103104

104105
<ProviderButton
105-
provider={SourceProvider['GITHUB']}
106+
provider={SourceProvider.GITHUB}
106107
isRestricted={hasReachedSitesLimit || session.loading}
107108
/>
108-
<ProviderButton provider={SourceProvider['GITLAB']} disabled />
109-
<ProviderButton provider={SourceProvider['BITBUCKET']} disabled />
109+
<ProviderButton provider={SourceProvider.GITLAB} disabled />
110+
<ProviderButton provider={SourceProvider.BITBUCKET} disabled />
110111
</Box>
111112

112113
<Box variant="container" className="inline">
@@ -117,7 +118,7 @@ export const GitProviderStep: React.FC = () => {
117118
Click here
118119
</Text>
119120
) : (
120-
<ExternalLink
121+
<Link
121122
variant="accent"
122123
href={{
123124
pathname: routes.project.site.new({
@@ -128,7 +129,7 @@ export const GitProviderStep: React.FC = () => {
128129
replace
129130
>
130131
Click here
131-
</ExternalLink>
132+
</Link>
132133
)}
133134
.
134135
</Box>

0 commit comments

Comments
 (0)