Skip to content

Commit

Permalink
Merge pull request #877 from CodeForAfrica/fix/commons_ui_next_link_r…
Browse files Browse the repository at this point in the history
…outer

@/commons-ui-next/Link App Router support
  • Loading branch information
kilemensi authored Sep 6, 2024
2 parents 80b6d0f + a7006cd commit 1293a12
Show file tree
Hide file tree
Showing 19 changed files with 178 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ exports[`<CommunityPlatforms /> renders unchanged 1`] = `
</div>
</div>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorSecondary MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorSecondary active css-1mu9r82-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorSecondary MuiButton-root MuiButton-contained MuiButton-containedSecondary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorSecondary css-1mu9r82-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
href="https://codeforafrica.org"
rel="noreferrer noopener"
tabindex="0"
Expand Down
12 changes: 6 additions & 6 deletions apps/charterafrica/src/components/Entity/Entity.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ exports[`<OrgAndContributor /> renders unchanged 1`] = `
class="MuiGrid-root MuiGrid-item css-13i4rnv-MuiGrid-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary active css-1iugyn0-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1iugyn0-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
href="https://charter.africa"
rel="noreferrer noopener"
tabindex="0"
Expand Down Expand Up @@ -157,7 +157,7 @@ exports[`<OrgAndContributor /> renders unchanged 1`] = `
class="MuiGrid-root MuiGrid-item css-13i4rnv-MuiGrid-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary active css-1iugyn0-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1iugyn0-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
href="https://charter.africa"
rel="noreferrer noopener"
tabindex="0"
Expand Down Expand Up @@ -193,7 +193,7 @@ exports[`<OrgAndContributor /> renders unchanged 1`] = `
class="MuiGrid-root MuiGrid-item css-13i4rnv-MuiGrid-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary active css-1iugyn0-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1iugyn0-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
href="https://charter.africa"
rel="noreferrer noopener"
tabindex="0"
Expand Down Expand Up @@ -243,7 +243,7 @@ exports[`<OrgAndContributor /> renders unchanged 1`] = `
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 css-18qart5-MuiGrid-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone active css-15h90l6-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone css-15h90l6-MuiTypography-root-MuiLink-root"
href="https://charter.africa"
rel="noreferrer noopener"
target="_blank"
Expand Down Expand Up @@ -307,7 +307,7 @@ exports[`<OrgAndContributor /> renders unchanged 1`] = `
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 css-18qart5-MuiGrid-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone active css-15h90l6-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone css-15h90l6-MuiTypography-root-MuiLink-root"
href="https://charter.africa"
rel="noreferrer noopener"
target="_blank"
Expand Down Expand Up @@ -371,7 +371,7 @@ exports[`<OrgAndContributor /> renders unchanged 1`] = `
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 css-18qart5-MuiGrid-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone active css-15h90l6-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone css-15h90l6-MuiTypography-root-MuiLink-root"
href="https://charter.africa"
rel="noreferrer noopener"
target="_blank"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`<OrganisationImageCard /> renders unchanged 1`] = `
<div>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary active css-1iugyn0-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1iugyn0-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
href="https://charter.africa"
rel="noreferrer noopener"
tabindex="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`<Repository /> renders unchanged 1`] = `
<div>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone active css-15h90l6-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineNone css-15h90l6-MuiTypography-root-MuiLink-root"
href="https://charter.africa"
rel="noreferrer noopener"
target="_blank"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`<SocialMediaButton /> renders unchanged 1`] = `
<div>
<a
aria-label="facebook"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiBox-root active css-qb5hih-MuiTypography-root-MuiLink-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiBox-root css-qb5hih-MuiTypography-root-MuiLink-root"
data-mui-internal-clone-element="true"
href="https://www.facebook.com/"
rel="noreferrer noopener"
Expand Down
26 changes: 13 additions & 13 deletions apps/codeforafrica/src/components/OurMission/OurMission.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
>
CfA builds digital democracy solutions that give citizens unfettered access to actionable information that empowers them to make informed decisions, which strengthens civic engagement for improved public governance and accountability. This includes building infrastructures like the continent’s largest open data portals at 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://openafrica.net/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -32,7 +32,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
</a>
 and 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://sourceafrica.net/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -41,7 +41,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
</a>
. CfA incubates initiatives as diverse as the 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://africandrone.org/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -50,7 +50,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
</a>
 network, the 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://pesacheck.org/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -59,7 +59,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
</a>
 fact-checking initiative and the 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://sensors.africa/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -73,7 +73,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
>
CfA manages the 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://investigate.africa/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -82,7 +82,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
</a>
 (ANCIR), which gives the continent’s top muckraking newsrooms the best possible 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://data.investigate.africa/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -91,7 +91,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
</a>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://getoutline.org/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -100,7 +100,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
</a>
 and 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://afrileaks.org/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -109,7 +109,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
</a>
 to help improve their ability to tackle crooked politicians, organised crime and predatory big business. CfA runs 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://academy.africa/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -118,7 +118,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
</a>
, one of the continent’s largest 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://courses.academy.africa/"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -127,7 +127,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
</a>
 initiatives for digital journalists, and seed funds cross-border collaboration. CfA’s research and analysis programme 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://civicsignal.africa/#/home"
rel="noreferrer noopener"
target="_blank"
Expand Down Expand Up @@ -170,7 +170,7 @@ exports[`<OurMission /> renders unchanged 1`] = `
>
CfA shares a covenant with the rest of the 
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 active css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiTypography-root MuiTypography-body1 css-xz8260-MuiTypography-root-MuiLink-root-MuiTypography-root"
href="https://codeforall.org/"
rel="noreferrer noopener"
target="_blank"
Expand Down
2 changes: 1 addition & 1 deletion apps/codeforafrica/src/components/Project/Project.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ exports[`<Project /> renders unchanged 1`] = `
class="MuiCardActions-root MuiCardActions-spacing css-1to78gr-MuiCardActions-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary active css-1wyu7kr-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-1wyu7kr-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
href="https://codeforafrica.org"
rel="noreferrer noopener"
tabindex="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ exports[`<ProjectPageHeader /> renders unchanged 1`] = `
class="MuiCardActions-root MuiCardActions-spacing css-1to78gr-MuiCardActions-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary active css-1wyu7kr-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-1wyu7kr-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiButton-root"
href="https://codeforafrica.org"
rel="noreferrer noopener"
tabindex="0"
Expand Down
Loading

0 comments on commit 1293a12

Please sign in to comment.