diff --git a/src/common/components/ConfirmationDialog.js b/src/common/components/ConfirmationDialog.js index bdb26f939..13c649d5f 100644 --- a/src/common/components/ConfirmationDialog.js +++ b/src/common/components/ConfirmationDialog.js @@ -57,7 +57,11 @@ const ConfirmationDialog = props => { aria-labelledby="confirmation-dialog-title" aria-describedby="confirmation-dialog-content-text" > - + {title} diff --git a/src/sharedData/components/SharedDataEntryBase.js b/src/sharedData/components/SharedDataEntryBase.js index 57df65c24..6205fb5ae 100644 --- a/src/sharedData/components/SharedDataEntryBase.js +++ b/src/sharedData/components/SharedDataEntryBase.js @@ -42,7 +42,7 @@ import theme from 'theme'; export const ICON_SIZE = 24; const StackRow = props => ( - + ); const SharedDataEntryBase = props => { @@ -169,14 +169,21 @@ const SharedDataEntryBase = props => { container spacing={1} alignItems="center" - sx={{ fontSize: 14, color: 'gray.dark1', p: 1 }} + sx={{ + fontSize: 14, + color: 'gray.dark1', + p: 1, + }} > { { return ( ( + + )} DownloadComponent={DownloadComponent} ShareComponent={ShareComponent} fileSize={filesize(sharedResource.dataEntry.size, { round: 0 })} diff --git a/src/sharedData/components/SharedDataEntryLink.js b/src/sharedData/components/SharedDataEntryLink.js index be57a403a..04b3bd7b9 100644 --- a/src/sharedData/components/SharedDataEntryLink.js +++ b/src/sharedData/components/SharedDataEntryLink.js @@ -82,7 +82,15 @@ const SharedDataEntryLink = props => { ( - + )} DownloadComponent={DownloadComponent} info={domain} diff --git a/src/sharedData/components/SharedFileIcon.js b/src/sharedData/components/SharedFileIcon.js index 55e9ff60e..58709f3cb 100644 --- a/src/sharedData/components/SharedFileIcon.js +++ b/src/sharedData/components/SharedFileIcon.js @@ -17,6 +17,7 @@ import React from 'react'; import _ from 'lodash/fp'; import InsertDriveFileOutlinedIcon from '@mui/icons-material/InsertDriveFileOutlined'; +import { Box } from '@mui/material'; const ICON_SIZE = 24; const ICON_FILES = { @@ -39,13 +40,17 @@ const ICON_FILES = { png: 'png.png', }; -const SharedFileIcon = ({ resourceType }) => { +const SharedFileIcon = ({ resourceType, styleProps, fallbackStyleProps }) => { if (_.includes(resourceType, Object.keys(ICON_FILES))) { return ( - {resourceType.toUpperCase()} @@ -57,6 +62,7 @@ const SharedFileIcon = ({ resourceType }) => { sx={{ fontSize: ICON_SIZE, color: 'gray.dark1', + ...fallbackStyleProps, }} /> );