Skip to content

Commit

Permalink
Add footerDisclaimers props
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBailaAndrade committed Jan 4, 2024
1 parent 8260b75 commit 11d1f9f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
22 changes: 22 additions & 0 deletions workspaces/cms-config/src/collections/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,28 @@ export const SEOCollectionConfig = {
widget: "string",
crowdin: true,
},
{
label: "Footer disclaimers",
name: "footerDisclaimers",
widget: "list",
required: false,
fields: [
{
label: "Disclaimer text",
name: "text",
widget: "string",
crowdin: true,
required: true,
},
{
label: "Disclaimer link",
name: "link",
widget: "string",
crowdin: true,
required: true,
},
],
}
],
},
{
Expand Down
4 changes: 4 additions & 0 deletions workspaces/cms-data/src/seo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ export interface SEOTexts {
};
footer: {
footerText: string;
footerDisclaimers: {
text: string;
link: string;
}[]
};
tutorials: {
title: string;
Expand Down
4 changes: 4 additions & 0 deletions workspaces/website/src/pages/(components)/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export interface Props {
readonly mainMenu: MainMenu;
readonly seo: {
footerText: string;
footerDisclaimers: {
text: string;
link: string;
}[];
};
}

Expand Down

0 comments on commit 11d1f9f

Please sign in to comment.