forked from ProjectMirador/mirador
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COLUMBIA: DownloadDialog plugin responds to presence of 'no-download'…
… behavior on canvas
- Loading branch information
Showing
8 changed files
with
70 additions
and
12 deletions.
There are no files selected for viewing
10 changes: 7 additions & 3 deletions
10
src/culPlugins/mirador-downloaddialog/components/DownloadButton.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/culPlugins/mirador-downloaddialog/components/dialog/SuppressedDownload.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Box from '@mui/material/Box'; | ||
import Card from '@mui/material/Card'; | ||
import CardContent from '@mui/material/CardContent'; | ||
import Typography from '@mui/material/Typography'; | ||
import PropTypes from 'prop-types'; | ||
|
||
/** */ | ||
const SuppressedDownload = ({ label, t }) => ( | ||
<Card className="mb-3" raised> | ||
<CardContent> | ||
<Typography component="h5" style={{ textTransform: 'none' }} variant="h6"> | ||
<Box fontWeight="fontWeightBold" textTransform="none"> | ||
{`${t( | ||
'suppressedDownloads', | ||
)}: ${label}`} | ||
</Box> | ||
</Typography> | ||
</CardContent> | ||
</Card> | ||
); | ||
|
||
SuppressedDownload.propTypes = { | ||
label: PropTypes.string.isRequired, | ||
t: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default SuppressedDownload; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters