Skip to content

Commit 2a1857a

Browse files
committed
fix(frontend): footer subscribe link
1 parent 74d98a0 commit 2a1857a

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

frontend/src/components/Footer.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ const Footer: React.FC = async () => {
7676
)}
7777
>
7878
<p className="text-primary-text">{cta.cta_text}</p>
79-
<Button>
80-
<span className="text-background-2">{cta.cta_button}</span>
81-
</Button>
79+
<CustomLink href={cta.cta_button.link.url}>
80+
<Button>
81+
<span className="text-background-2">{cta.cta_button.text}</span>
82+
</Button>
83+
</CustomLink>
8284
</div>
8385
</div>
8486
</div>

frontend/src/queries/footer.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ export const footerQuery = gql`
2626
}
2727
notice
2828
cta_text
29-
cta_button
29+
cta_button {
30+
text
31+
link {
32+
url
33+
}
34+
}
3035
}
3136
}
3237
`;
@@ -56,6 +61,11 @@ export type FooterQueryType = {
5661
};
5762
notice: string;
5863
cta_text: string;
59-
cta_button: string;
64+
cta_button: {
65+
text: string;
66+
link: {
67+
url: string;
68+
};
69+
};
6070
};
6171
};

0 commit comments

Comments
 (0)