Skip to content

Commit

Permalink
make notifications dissapear and remove borders
Browse files Browse the repository at this point in the history
  • Loading branch information
cphelefu committed Feb 26, 2024
1 parent 5558867 commit 99a7187
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ export const getSxClasses = (theme: Theme) => ({
flexDirection: 'row',
alignItems: 'center',
gap: '8px',
borderBottom: '1px solid #474747',
padding: '10px 15px',

'&:not(:last-child)': {
borderBottom: `1px solid ${theme.palette.geoViewColor.bgColor.dark[300]}`
},

'& .MuiIconButton-root': {
color: theme.palette.geoViewColor.textColor.lighten(0.2, 0.4),
'&:hover': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default function Notifications(): JSX.Element {

// internal state
const [anchorEl, setAnchorEl] = useState<HTMLButtonElement | null>(null);
const [open, setOpen] = useState(false);

// get values from the store
const notifications = useAppNotifications();
Expand All @@ -57,9 +58,9 @@ export default function Notifications(): JSX.Element {
const notificationsCount = _.sumBy(notifications, (n) => n.count);

// handle open/close
const open = Boolean(anchorEl);
const handleOpenPopover = (event: React.MouseEvent<HTMLButtonElement>) => {
setAnchorEl(event.currentTarget);
setOpen(!open);
};

/**
Expand Down Expand Up @@ -125,7 +126,7 @@ export default function Notifications(): JSX.Element {
{notifications.length > 0 ? (
notifications.map((notification, index) => renderNotification(notification, index))
) : (
<Typography component="div">{t('appbar.no_notifications_available')}</Typography>
<Typography component="div" sx={{padding:"10px 15px"}}>{t('appbar.no_notifications_available')}</Typography>
)}
</Box>
</Paper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const generateThemeOptions = (geoViewColors: IGeoViewColors = defaultGeoV
styleOverrides: {
root: {
'&.style1': {
backgroundColor: `${geoViewColors.bgColor.dark[100]}`,
backgroundColor: 'transparent',
border: `3px solid transparent`,
color: `${geoViewColors.primary.main}`,
'&:hover, &:active, &.active': {
Expand Down

0 comments on commit 99a7187

Please sign in to comment.