Skip to content

Commit cf80d50

Browse files
Merge branch 'master' into eslint-fix
2 parents d3d2f42 + c804a70 commit cf80d50

File tree

2 files changed

+37
-16
lines changed

2 files changed

+37
-16
lines changed

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Basic `dependabot.yml` file with
2+
# minimum configuration for two package managers
3+
4+
version: 2
5+
updates:
6+
# Enable version updates for npm
7+
- package-ecosystem: "npm"
8+
# Look for `package.json` and `lock` files in the `root` directory
9+
directory: "/"
10+
# Check the npm registry for updates every day (weekdays)
11+
schedule:
12+
interval: "daily"
13+
14+
# # Enable version updates for Docker
15+
# - package-ecosystem: "docker"
16+
# # Look for a `Dockerfile` in the `root` directory
17+
# directory: "/"
18+
# # Check for updates once a week
19+
# schedule:
20+
# interval: "weekly"

src/custom/DashboardWidgets/RecentDesignWidget.tsx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { Modal, ModalBody } from '../Modal';
2424
interface Resource {
2525
link: string;
2626
name: string;
27-
icon?: string;
27+
icon?: React.ReactNode;
2828
external?: boolean;
2929
timestamp: string;
3030
}
@@ -77,18 +77,17 @@ const ResourcesList = styled('ul')({
7777
margin: '0'
7878
});
7979

80-
const ResourceItem = styled('li')({
80+
const ResourceItem = styled('li')(({ theme }) => ({
8181
listStyleType: 'none',
8282
display: 'flex',
8383
flexDirection: 'row',
84-
alignItems: 'center'
85-
});
84+
alignItems: 'center',
85+
gap: '0.25rem',
8686

87-
const ResourceIcon = styled('img')({
88-
width: '12px',
89-
height: '12px',
90-
marginRight: '.25rem'
91-
});
87+
'&:hover': {
88+
color: theme.palette.primary.main
89+
}
90+
}));
9291

9392
const ResourceLink = styled(Link)({
9493
fontSize: '1rem',
@@ -97,7 +96,12 @@ const ResourceLink = styled(Link)({
9796
overflow: 'hidden',
9897
textOverflow: 'ellipsis',
9998
maxWidth: '12rem',
100-
textDecoration: 'none'
99+
textDecoration: 'none',
100+
color: 'inherit',
101+
102+
'&:hover': {
103+
textDecoration: 'none'
104+
}
101105
});
102106

103107
const TimestampText = styled(Typography)({
@@ -201,12 +205,9 @@ const DesignCard: React.FC<DesignCardProps> = ({
201205
<ResourcesList>
202206
{resources.map((item) => (
203207
<ResourceItem key={item.link}>
204-
{item.icon && (
205-
<ResourceIcon
206-
src={item.icon} // Use item.icon as the source of the image
207-
alt={`Icon for ${item.name}`}
208-
/>
209-
)}
208+
<Box sx={{ flexShrink: 0, display: 'flex', alignItems: 'center' }}>
209+
{item.icon}
210+
</Box>
210211
<ResourceLink href={item.link}>{item.name}</ResourceLink>
211212

212213
{item.external == true ? (

0 commit comments

Comments
 (0)