Skip to content

Commit

Permalink
update(roles): ui styles update (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw authored Sep 18, 2023
1 parent 2697ec8 commit e9aa4dc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
]
},
"dependencies": {
"@catena-x/portal-shared-components": "^2.0.26",
"@catena-x/portal-shared-components": "^2.0.27",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@hookform/error-message": "^2.0.1",
Expand Down
15 changes: 13 additions & 2 deletions src/components/pages/AppOverview/AddRoles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,18 @@ export default function AddRoles() {
establishedRoles: string
checkbox: string
}
}) => <Chip color="info" label={row.establishedRoles} withIcon={false} />,
}) => (
<Chip
color="info"
label={row.establishedRoles}
withIcon={false}
sx={{
'.span.MuiChip-label:hover': {
backgroundColor: 'transparent',
},
}}
/>
),
},
{
field: 'checkbox',
Expand Down Expand Up @@ -130,7 +141,7 @@ export default function AddRoles() {
/>
<div className="main-container">
<div className="main-row">
<Box sx={{ textAlign: 'center' }}>
<Box sx={{ textAlign: 'center', paddingTop: '20px' }}>
<Button size="small" onClick={() => setAddRolesOverlayOpen(true)}>
{t('content.addRoles.uploadAdditionalRoles')}
</Button>
Expand Down
16 changes: 5 additions & 11 deletions src/components/pages/AppOverview/AddRolesOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
Typography,
} from '@catena-x/portal-shared-components'
import { PAGES } from 'types/Constants'
import { Grid } from '@mui/material'
import { Box, Grid } from '@mui/material'
import FileDownloadOutlinedIcon from '@mui/icons-material/FileDownloadOutlined'
import { Controller, useForm } from 'react-hook-form'
import { Dropzone } from 'components/shared/basic/Dropzone'
Expand Down Expand Up @@ -229,15 +229,7 @@ const AddRolesOverlay = ({
}}
acceptFormat={{ 'text/csv': ['.csv'] }}
maxFilesToUpload={1}
enableDeleteOverlay={true}
deleteOverlayTranslation={{
title: '',
content: t(
'content.apprelease.technicalIntegration.deleteOverlayContent'
),
action_no: `${t('global.actions.no')}`,
action_yes: `${t('global.actions.yes')}`,
}}
enableDeleteOverlay={false}
/>
)}
/>
Expand All @@ -255,7 +247,9 @@ const AddRolesOverlay = ({
)}

{rolesPreviews?.length > 0 && (
<StaticTable data={tableData} horizontal={false} />
<Box sx={{ width: '80%', margin: '40px auto 0' }}>
<StaticTable data={tableData} horizontal={false} />
</Box>
)}
<Typography align="center" variant="body2" sx={{ mt: 5, mb: 2 }}>
{t('content.addRoles.confirmButtonDescription')}
Expand Down

0 comments on commit e9aa4dc

Please sign in to comment.