Skip to content

Commit

Permalink
Merge pull request #674 from CodeForAfrica/ft/design-updates
Browse files Browse the repository at this point in the history
Charter Africa Design Update
  • Loading branch information
kelvinkipruto authored Feb 29, 2024
2 parents 0a2deea + d20dce6 commit 187754f
Show file tree
Hide file tree
Showing 29 changed files with 1,259 additions and 160 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 13 additions & 17 deletions apps/charterafrica/src/components/Dataset/Dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,19 @@ function Dataset({
))}
</Grid>
) : null}
<Button
variant="contained"
color="primary"
size="large"
startIcon={<ExternalLinkIcon />}
href={url}
target="_blank"
sx={{
mt: 4,
}}
>
{labels.openDataset}
</Button>
<RichTypography
color="common.black"
order={1}
Expand Down Expand Up @@ -163,23 +176,6 @@ function Dataset({
>
{labels.backToDatasets}
</Typography>
<Button
variant="contained"
color="primary"
size="medium"
startIcon={<ExternalLinkIcon />}
href={url}
target="_blank"
sx={{
width: {
xs: "100%",
sm: "200px",
},
height: "50px",
}}
>
{labels.openDataset}
</Button>
<ShareThisPage
title={labels.shareDataset}
sx={{
Expand Down
26 changes: 13 additions & 13 deletions apps/charterafrica/src/components/Dataset/Dataset.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ exports[`<Dataset /> renders unchanged 1`] = `
</span>
</div>
</div>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeLarge MuiButton-containedSizeLarge MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeLarge MuiButton-containedSizeLarge css-11h43d9-MuiButtonBase-root-MuiButton-root"
tabindex="0"
target="_blank"
type="button"
>
<span
class="MuiButton-startIcon MuiButton-iconSizeLarge css-vpap0f-MuiButton-startIcon"
>
<div />
</span>
Open Dataset
</button>
<div
class="MuiTypography-root MuiTypography-p1 css-iycfiz-MuiTypography-root"
>
Expand All @@ -69,19 +82,6 @@ exports[`<Dataset /> renders unchanged 1`] = `
>
Back to Datasets
</a>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1scqxyq-MuiButtonBase-root-MuiButton-root"
tabindex="0"
target="_blank"
type="button"
>
<span
class="MuiButton-startIcon MuiButton-iconSizeMedium css-gcc2o7-MuiButton-startIcon"
>
<div />
</span>
Open Dataset
</button>
<div
class="MuiStack-root css-1xe1uy8-MuiStack-root"
>
Expand Down
Loading

0 comments on commit 187754f

Please sign in to comment.