File tree Expand file tree Collapse file tree 6 files changed +10
-16
lines changed
templates/Introduction/components Expand file tree Collapse file tree 6 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 1- import { Link } from 'gatsby' ;
21import React , {
32 useState ,
43 useEffect ,
@@ -21,7 +20,7 @@ import {
2120} from '@freecodecamp/ui' ;
2221
2322import envData from '../../config/env.json' ;
24- import { Spacer , Loader } from '../components/helpers' ;
23+ import { Spacer , Loader , Link } from '../components/helpers' ;
2524import './show-update-email.css' ;
2625import { isSignedInSelector , userSelector } from '../redux/selectors' ;
2726import { hardGoTo as navigate } from '../redux/actions' ;
Original file line number Diff line number Diff line change 11import { RouteComponentProps } from '@reach/router' ;
2- import { Link } from 'gatsby' ;
32import React from 'react' ;
43import Helmet from 'react-helmet' ;
54import { useTranslation } from 'react-i18next' ;
65
76import notFoundLogo from '../../assets/images/freeCodeCamp-404.svg' ;
87import { randomQuote } from '../../utils/get-words' ;
9- import { Spacer } from '../helpers' ;
8+ import { Spacer , Link } from '../helpers' ;
109
1110import './404.css' ;
1211
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { Link as GatsbyLink } from 'gatsby' ;
32import { Button } from '@freecodecamp/ui' ;
43
4+ import Link from './link' ;
5+
56export type ButtonSize = 'small' | 'medium' | 'large' ;
67
78interface Props extends React . AnchorHTMLAttributes < HTMLAnchorElement > {
@@ -67,13 +68,8 @@ export const ButtonLink = ({
6768 }
6869
6970 return (
70- < GatsbyLink
71- className = { gatsbyLinkCls }
72- to = { href }
73- target = { target }
74- onClick = { onClick }
75- >
71+ < Link className = { gatsbyLinkCls } to = { href } target = { target } onClick = { onClick } >
7672 { children }
77- </ GatsbyLink >
73+ </ Link >
7874 ) ;
7975} ;
Original file line number Diff line number Diff line change 1- import { Link , navigate } from 'gatsby' ;
1+ import { navigate } from 'gatsby' ;
22import { find } from 'lodash-es' ;
33import React , { MouseEvent , useState } from 'react' ;
44import { withTranslation } from 'react-i18next' ;
@@ -21,7 +21,7 @@ import {
2121} from '../../../config/cert-and-project-map' ;
2222import { FlashMessages } from '../Flash/redux/flash-messages' ;
2323import ProjectModal from '../SolutionViewer/project-modal' ;
24- import { FullWidthRow , Spacer } from '../helpers' ;
24+ import { FullWidthRow , Spacer , Link } from '../helpers' ;
2525import { SolutionDisplayWidget } from '../solution-display-widget' ;
2626import {
2727 Certification ,
Original file line number Diff line number Diff line change 77 ControlLabel ,
88 Button
99} from '@freecodecamp/ui' ;
10- import { Link } from 'gatsby' ;
1110import React , { useState } from 'react' ;
1211import type { TFunction } from 'i18next' ;
1312import { Trans , withTranslation } from 'react-i18next' ;
@@ -22,6 +21,7 @@ import { maybeEmailRE } from '../../utils';
2221import BlockSaveButton from '../helpers/form/block-save-button' ;
2322import FullWidthRow from '../helpers/full-width-row' ;
2423import Spacer from '../helpers/spacer' ;
24+ import Link from '../helpers/link' ;
2525import SectionHeader from './section-header' ;
2626import ToggleButtonSetting from './toggle-button-setting' ;
2727
Original file line number Diff line number Diff line change 1- import { Link } from 'gatsby' ;
21import React from 'react' ;
32import { withTranslation , useTranslation } from 'react-i18next' ;
43
@@ -7,6 +6,7 @@ import GreenPass from '../../../assets/icons/green-pass';
76import { ChallengeWithCompletedNode } from '../../../redux/prop-types' ;
87import { SuperBlocks } from '../../../../../shared/config/curriculum' ;
98import { challengeTypes } from '../../../../../shared/config/challenge-types' ;
9+ import { Link } from '../../../components/helpers' ;
1010import { ButtonLink } from '../../../components/helpers/button-link' ;
1111
1212const getStepNumber = ( dashedName : string ) => {
You can’t perform that action at this time.
0 commit comments