Skip to content

Commit

Permalink
fix: Update TF links (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgegillams authored Nov 9, 2024
1 parent bbcaac5 commit 3a70f42
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 15 deletions.
5 changes: 3 additions & 2 deletions shared/helpers/redirects.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CONTACT_FORM, CONTRASTER_FEEDBACK_FORM } from 'client-utils/common/typeformConstants';
import appConfig from './appConfig';

const redirects = [
Expand All @@ -8,7 +9,7 @@ const redirects = [
{ from: '/copyright', to: 'https://creativecommons.org/licenses/by-sa/3.0/' },
{ from: '/flickr', to: 'https://www.flickr.com/photos/georgegillams' },
{ from: '/youtube', to: 'https://www.youtube.com/channel/UCT42ju8eCIWexjzT2whVOgQ' },
{ from: '/typeform', to: 'https://form.typeform.com/to/WJSWmnKh' },
{ from: '/typeform', to: CONTACT_FORM },
{ from: '/monzo', to: 'https://join.monzo.com/r/vjd3d74' },
{ from: '/github', to: 'https://github.com/georgegillams' },
{ from: '/dotfiles', to: 'https://github.com/georgegillams/dotfiles' },
Expand Down Expand Up @@ -55,7 +56,7 @@ const redirects = [
{ from: '/reading', to: '/reading-list' },
{ from: '/medals', to: '/races' },

{ from: '/contraster-feedback', to: 'https://form.typeform.com/to/XhSSvzDp' },
{ from: '/contraster-feedback', to: CONTRASTER_FEEDBACK_FORM },
];

export default redirects;
3 changes: 2 additions & 1 deletion src/containers/Contact/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import instagramLogo from './instagram.svg';
import formLogo from './form.svg';
import PageContainer, { WIDTHS } from 'components/common/PageContainer';
import { IconImage, ImageIconContainer, InfoCellContainer, Spacer, StyledInfoCellWithScroll } from './contact.styles';
import { CONTACT_FORM } from 'client-utils/common/typeformConstants';

const Contact = () => {
return (
Expand All @@ -26,7 +27,7 @@ const Contact = () => {
<StyledInfoCellWithScroll
title="Form"
content={
<TextLink href="https://form.typeform.com/to/WJSWmnKh" hrefExternal>
<TextLink href={CONTACT_FORM} hrefExternal>
Fill in my contact form
</TextLink>
}
Expand Down
3 changes: 2 additions & 1 deletion src/containers/Drone/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import TextLink from 'components/common/TextLink';
import Button from 'components/common/Button';
import { BUTTON_SIZES } from '@george-gillams/components/button';
import { withScrollAnimation } from '@george-gillams/components/effects';
import { LOST_FOUND_FORM } from 'client-utils/common/typeformConstants';
const SectionWithScroll = withScrollAnimation(Section);

const Drone = () => {
Expand All @@ -25,7 +26,7 @@ const Drone = () => {
</Paragraph>
<br />
<Paragraph>
<Button size={BUTTON_SIZES.large} hrefExternal href="https://form.typeform.com/to/hzJMvzsT#item=drone">
<Button size={BUTTON_SIZES.large} hrefExternal href={`${LOST_FOUND_FORM}#item=drone`}>
I&#39;ve found your drone →
</Button>
</Paragraph>
Expand Down
3 changes: 2 additions & 1 deletion src/containers/Luggage/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Paragraph from '@george-gillams/components/paragraph/paragraph';
import Button from 'components/common/Button';
import { BUTTON_SIZES } from '@george-gillams/components/button';
import { withScrollAnimation } from '@george-gillams/components/effects';
import { LOST_FOUND_FORM } from 'client-utils/common/typeformConstants';
const SectionWithScroll = withScrollAnimation(Section);

const Luggage = () => {
Expand All @@ -20,7 +21,7 @@ const Luggage = () => {
</Paragraph>
<br />
<Paragraph>
<Button size={BUTTON_SIZES.large} hrefExternal href="https://form.typeform.com/to/hzJMvzsT#item=bag">
<Button size={BUTTON_SIZES.large} hrefExternal href={`${LOST_FOUND_FORM}#item=bag`}>
I&#39;ve found your bag →
</Button>
</Paragraph>
Expand Down
20 changes: 10 additions & 10 deletions src/containers/SiteMap/tests/__snapshots__/Container.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ exports[`<SiteMap /> should render correctly - index 1`] = `
<span
class="c11"
>
/typeform ⇒ https://form.typeform.com/to/WJSWmnKh
/typeform ⇒ https://georgegillams.typeform.com/contact
</span>
</a>
<br />
Expand Down Expand Up @@ -1575,7 +1575,7 @@ exports[`<SiteMap /> should render correctly - index 1`] = `
<span
class="c11"
>
/contraster-feedback ⇒ https://form.typeform.com/to/XhSSvzDp
/contraster-feedback ⇒ https://georgegillams.typeform.com/contraster
</span>
</a>
<br />
Expand Down Expand Up @@ -2630,7 +2630,7 @@ exports[`<SiteMap /> should render correctly 1`] = `
<span
class="c11"
>
/typeform ⇒ https://form.typeform.com/to/WJSWmnKh
/typeform ⇒ https://georgegillams.typeform.com/contact
</span>
</a>
<br />
Expand Down Expand Up @@ -3163,7 +3163,7 @@ exports[`<SiteMap /> should render correctly 1`] = `
<span
class="c11"
>
/contraster-feedback ⇒ https://form.typeform.com/to/XhSSvzDp
/contraster-feedback ⇒ https://georgegillams.typeform.com/contraster
</span>
</a>
<br />
Expand Down Expand Up @@ -4146,7 +4146,7 @@ exports[`<SiteMap /> should render correctly with blogs 1`] = `
<span
class="c11"
>
/typeform ⇒ https://form.typeform.com/to/WJSWmnKh
/typeform ⇒ https://georgegillams.typeform.com/contact
</span>
</a>
<br />
Expand Down Expand Up @@ -4679,7 +4679,7 @@ exports[`<SiteMap /> should render correctly with blogs 1`] = `
<span
class="c11"
>
/contraster-feedback ⇒ https://form.typeform.com/to/XhSSvzDp
/contraster-feedback ⇒ https://georgegillams.typeform.com/contraster
</span>
</a>
<br />
Expand Down Expand Up @@ -5733,7 +5733,7 @@ exports[`<SiteMap /> should render correctly with blogs and admin user 1`] = `
<span
class="c11"
>
/typeform ⇒ https://form.typeform.com/to/WJSWmnKh
/typeform ⇒ https://georgegillams.typeform.com/contact
</span>
</a>
<br />
Expand Down Expand Up @@ -6266,7 +6266,7 @@ exports[`<SiteMap /> should render correctly with blogs and admin user 1`] = `
<span
class="c11"
>
/contraster-feedback ⇒ https://form.typeform.com/to/XhSSvzDp
/contraster-feedback ⇒ https://georgegillams.typeform.com/contraster
</span>
</a>
<br />
Expand Down Expand Up @@ -7249,7 +7249,7 @@ exports[`<SiteMap /> should render correctly with ssrBlogs 1`] = `
<span
class="c11"
>
/typeform ⇒ https://form.typeform.com/to/WJSWmnKh
/typeform ⇒ https://georgegillams.typeform.com/contact
</span>
</a>
<br />
Expand Down Expand Up @@ -7782,7 +7782,7 @@ exports[`<SiteMap /> should render correctly with ssrBlogs 1`] = `
<span
class="c11"
>
/contraster-feedback ⇒ https://form.typeform.com/to/XhSSvzDp
/contraster-feedback ⇒ https://georgegillams.typeform.com/contraster
</span>
</a>
<br />
Expand Down
3 changes: 3 additions & 0 deletions src/utils/common/typeformConstants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const CONTACT_FORM = 'https://georgegillams.typeform.com/contact';
export const LOST_FOUND_FORM = 'https://georgegillams.typeform.com/found';
export const CONTRASTER_FEEDBACK_FORM = 'https://georgegillams.typeform.com/contraster';

0 comments on commit 3a70f42

Please sign in to comment.