Skip to content

Commit

Permalink
Fix Link for Migration
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Dec 8, 2023
1 parent f8c6464 commit 987ba47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/OnboardingSPA/steps/TheFork/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import CommonLayout from '../../components/Layouts/Common';

import { useEffect } from '@wordpress/element';
import { useDispatch } from '@wordpress/data';
import { useSelect, useDispatch } from '@wordpress/data';

import { store as nfdOnboardingStore } from '../../store';
import { FOOTER_SITEGEN, HEADER_SITEGEN } from '../../../constants';
Expand All @@ -12,6 +12,12 @@ import StartOptions from '../../components/StartOptions';
import getContents from './contents';

const TheFork = () => {
const { migrationUrl } = useSelect( ( select ) => {
return {
migrationUrl: select( nfdOnboardingStore ).getMigrationUrl(),
};
} );

const {
setIsHeaderEnabled,
setSidebarActiveView,
Expand Down Expand Up @@ -53,7 +59,8 @@ const TheFork = () => {
<br />
<a
className="nfd-onboarding-step--site-gen__fork__importsite"
href={ content.importlink }
href={ migrationUrl }
target="_blank" rel="noreferrer"

Check failure on line 63 in src/OnboardingSPA/steps/TheFork/index.js

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Replace `·` with `⏎↹↹↹↹`
>
{ content.importtext }
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/OnboardingSPA/steps/TheFork/stylesheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
text-align: center;
font-size: 18px;
line-height: 20px;
margin-top: 35px !important;
margin: 35px !important;
}
}
}
Expand Down

0 comments on commit 987ba47

Please sign in to comment.