@canmingir/link 1.2.26 → 1.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/package.json +9 -5
  2. package/src/Platform.jsx +1 -0
  3. package/src/assets/illustrations/avatar-shape.jsx +6 -7
  4. package/src/assets/illustrations/booking-illustration.jsx +4 -14
  5. package/src/assets/illustrations/check-in-illustration.jsx +4 -10
  6. package/src/assets/illustrations/check-out-illustration.jsx +4 -3
  7. package/src/assets/illustrations/coming-soon-illustration.jsx +4 -17
  8. package/src/assets/illustrations/forbidden-illustration.jsx +4 -12
  9. package/src/assets/illustrations/maintenance-illustration.jsx +4 -24
  10. package/src/assets/illustrations/motivation-illustration.jsx +4 -9
  11. package/src/assets/illustrations/order-complete-illustration.jsx +4 -12
  12. package/src/assets/illustrations/page-not-found-illustration.jsx +4 -9
  13. package/src/assets/illustrations/seo-illustration.jsx +4 -16
  14. package/src/assets/illustrations/sever-error-illustration.jsx +4 -21
  15. package/src/assets/illustrations/upgrade-storage-illustration.jsx +4 -20
  16. package/src/assets/illustrations/upload-illustration.jsx +4 -81
  17. package/src/components/TopNavBar/TopNavBar.jsx +6 -2
  18. package/src/components/file-thumbnail/file-thumbnail.jsx +5 -6
  19. package/src/components/label/label.jsx +0 -4
  20. package/src/components/nav-section/horizontal/nav-section-horizontal.jsx +5 -6
  21. package/src/components/settings/drawer/layout-options.jsx +5 -4
  22. package/src/components/settings/drawer/presets-options.jsx +6 -5
  23. package/src/components/settings/drawer/settings-drawer.jsx +7 -4
  24. package/src/components/settings/drawer/stretch-options.jsx +5 -5
  25. package/src/hooks/index.js +2 -1
  26. package/src/hooks/use-beta.js +8 -0
  27. package/src/layouts/DashboardLayout/header.jsx +5 -4
  28. package/src/layouts/DashboardLayout/nav-mini.jsx +5 -7
  29. package/src/layouts/DashboardLayout/nav-vertical.jsx +11 -11
  30. package/src/layouts/FullScreenLayout/FullScreenLayout.jsx +5 -1
  31. package/src/layouts/FullScreenLayout/nav-vertical.jsx +11 -11
  32. package/src/layouts/MainLayout/footer.jsx +7 -7
  33. package/src/layouts/MainLayout/header.jsx +3 -2
  34. package/src/layouts/MainLayout/nav/desktop/nav-list.jsx +8 -8
  35. package/src/layouts/MainLayout/nav/mobile/index.jsx +7 -6
  36. package/src/layouts/TwoSideLayout/TwoSideLayout.jsx +9 -3
  37. package/src/layouts/auth/classic.jsx +6 -6
  38. package/src/layouts/auth/modern.jsx +3 -4
  39. package/src/layouts/common/ProjectBar/index.jsx +13 -11
  40. package/src/layouts/common/header-sim.jsx +3 -2
  41. package/src/layouts/common/header-simple.jsx +6 -3
  42. package/src/layouts/common/notifications-popover/index.jsx +18 -13
  43. package/src/layouts/common/notifications-popover/notification-item.jsx +28 -16
  44. package/src/lib/APIPath/APIPath.jsx +2 -2
  45. package/src/lib/APITree/APITree.jsx +3 -1
  46. package/src/lib/AddItemWizard/AddItemWizard.jsx +21 -10
  47. package/src/lib/CustomBreadcrumbs/CustomBreadcrumbs.jsx +3 -2
  48. package/src/lib/Flow/layouts/CardLayout.jsx +4 -3
  49. package/src/lib/Flow/nodes/DefaultCard.jsx +6 -8
  50. package/src/lib/IconSelector/IconSelector.jsx +5 -1
  51. package/src/lib/ItemSummary/ItemSummary.jsx +11 -6
  52. package/src/lib/ItemSummary/ItemsSummary.jsx +38 -26
  53. package/src/lib/Label/Label.jsx +0 -4
  54. package/src/lib/ResourceMenu/ResourceMenu.jsx +3 -1
  55. package/src/lib/SparkleInput/SparkleInput.jsx +31 -28
  56. package/src/lib/TableSelectedAction/TableSelectedAction.jsx +7 -8
  57. package/src/pages/ConfigError.jsx +3 -1
  58. package/src/theme/index.jsx +47 -48
  59. package/src/theme/overrides/components/loading-button.js +5 -5
  60. package/src/theme/overrides/default-props.jsx +17 -11
  61. package/src/widgets/Login/CognitoLogin.jsx +61 -53
  62. package/src/widgets/Login/DemoLogin.jsx +34 -31
  63. package/src/widgets/SettingsDialog.jsx +62 -19
@@ -7,11 +7,12 @@ import { presetOptions } from "../../../theme/options/presets";
7
7
  export default function PresetsOptions({ value, onChange }) {
8
8
  return (
9
9
  <Box
10
- columnGap={2}
11
- rowGap={1.5}
12
- display="grid"
13
- gridTemplateColumns="repeat(3, 1fr)"
14
- >
10
+ sx={{
11
+ columnGap: 2,
12
+ rowGap: 1.5,
13
+ display: "grid",
14
+ gridTemplateColumns: "repeat(3, 1fr)"
15
+ }}>
15
16
  {presetOptions.map((option) => {
16
17
  const selected = value === option.name;
17
18
 
@@ -32,10 +32,13 @@ export default function SettingsDrawer() {
32
32
  const renderHead = (
33
33
  <Stack
34
34
  direction="row"
35
- alignItems="center"
36
- justifyContent="space-between"
37
- sx={{ py: 2, pr: 1, pl: 2.5 }}
38
- >
35
+ sx={{
36
+ alignItems: "center",
37
+ justifyContent: "space-between",
38
+ py: 2,
39
+ pr: 1,
40
+ pl: 2.5
41
+ }}>
39
42
  <Typography variant="h6" sx={{ flexGrow: 1 }}>
40
43
  Settings
41
44
  </Typography>
@@ -30,16 +30,16 @@ export default function StretchOptions({ value, onChange }) {
30
30
  >
31
31
  <Stack
32
32
  direction="row"
33
- alignItems="center"
34
- justifyContent="space-between"
35
33
  sx={{
34
+ alignItems: "center",
35
+ justifyContent: "space-between",
36
36
  width: 0.24,
37
37
  transition: (theme) => theme.transitions.create(["width"]),
38
+
38
39
  ...(value && {
39
40
  width: 0.5,
40
- }),
41
- }}
42
- >
41
+ })
42
+ }}>
43
43
  <Iconify
44
44
  icon={
45
45
  value ? "eva:arrow-ios-back-fill" : "eva:arrow-ios-forward-fill"
@@ -1,2 +1,3 @@
1
1
  import useApi from "./useApi";
2
- export { useApi };
2
+ import useBeta from "./use-beta";
3
+ export { useApi, useBeta };
@@ -0,0 +1,8 @@
1
+ import { useSettingsContext } from "../components/settings/context";
2
+
3
+ const useBeta = () => {
4
+ const { beta } = useSettingsContext();
5
+ return beta;
6
+ };
7
+
8
+ export default useBeta;
@@ -46,12 +46,13 @@ export default function Header({ onOpenNav }) {
46
46
  {projectBar && <ProjectBar />}
47
47
 
48
48
  <Stack
49
- flexGrow={1}
50
49
  direction="row"
51
- alignItems="center"
52
- justifyContent="flex-end"
53
50
  spacing={{ xs: 0.5, sm: 1 }}
54
- >
51
+ sx={{
52
+ flexGrow: 1,
53
+ alignItems: "center",
54
+ justifyContent: "flex-end"
55
+ }}>
55
56
  <NotificationsPopover />
56
57
 
57
58
  <SettingsButton />
@@ -39,7 +39,6 @@ export default function NavMini({ only }) {
39
39
  }}
40
40
  />
41
41
  )}
42
-
43
42
  <Stack
44
43
  sx={{
45
44
  pb: 2,
@@ -60,16 +59,15 @@ export default function NavMini({ only }) {
60
59
  <Box sx={{ flexGrow: 1 }} />
61
60
  <Stack
62
61
  direction={"column"}
63
- alignItems={"center"}
64
- justifyItems={"center"}
65
62
  sx={{
63
+ alignItems: "center",
64
+ justifyItems: "center",
65
+ gap: 2,
66
66
  marginBottom: 0,
67
67
  position: lgUp ? "static" : "fixed",
68
68
  bottom: lgUp ? "auto" : 66,
69
- width: "100%",
70
- }}
71
- gap={2}
72
- >
69
+ width: "100%"
70
+ }}>
73
71
  {actionButtons &&
74
72
  actionButtons.map((Action, index) => (
75
73
  <Box key={index} component={Action}></Box>
@@ -123,16 +123,15 @@ export default function NavVertical({ openNav, onCloseNav }) {
123
123
  <Box sx={{ flexGrow: 1 }} />
124
124
  <Stack
125
125
  direction={"column"}
126
- alignItems={"center"}
127
- justifyItems={"center"}
128
126
  sx={{
127
+ alignItems: "center",
128
+ justifyItems: "center",
129
+ gap: 2,
129
130
  marginBottom: lgUp ? 3 : 0,
130
131
  position: lgUp ? "static" : "fixed",
131
132
  bottom: lgUp ? "auto" : 66,
132
- width: "100%",
133
- }}
134
- gap={2}
135
- >
133
+ width: "100%"
134
+ }}>
136
135
  {actionButtons &&
137
136
  actionButtons?.map((Action, index) => (
138
137
  <Box key={index} component={Action}></Box>
@@ -171,7 +170,6 @@ export default function NavVertical({ openNav, onCloseNav }) {
171
170
  }}
172
171
  >
173
172
  <NavToggleButton />
174
-
175
173
  {lgUp ? (
176
174
  <Stack
177
175
  sx={{
@@ -187,10 +185,12 @@ export default function NavVertical({ openNav, onCloseNav }) {
187
185
  <Drawer
188
186
  open={openNav}
189
187
  onClose={onCloseNav}
190
- PaperProps={{
191
- sx: {
192
- width: NAV.W_VERTICAL,
193
- },
188
+ slotProps={{
189
+ paper: {
190
+ sx: {
191
+ width: NAV.W_VERTICAL,
192
+ },
193
+ }
194
194
  }}
195
195
  >
196
196
  {renderContent}
@@ -63,7 +63,11 @@ export default function FullScreenLayout() {
63
63
  return (
64
64
  <>
65
65
  {renderHorizontal}
66
- <Stack width={"100%"} sx={{ mt: 7 }}>
66
+ <Stack
67
+ sx={{
68
+ width: "100%",
69
+ mt: 7
70
+ }}>
67
71
  <Outlet />
68
72
  </Stack>
69
73
  </>
@@ -62,16 +62,15 @@ export default function NavVertical({ openNav, onCloseNav }) {
62
62
  <Box sx={{ flexGrow: 1 }} />
63
63
  <Stack
64
64
  direction={"column"}
65
- alignItems={"center"}
66
- justifyItems={"center"}
67
65
  sx={{
66
+ alignItems: "center",
67
+ justifyItems: "center",
68
+ gap: 2,
68
69
  marginBottom: lgUp ? 3 : 0,
69
70
  position: lgUp ? "static" : "fixed",
70
71
  bottom: lgUp ? "auto" : 66,
71
- width: "100%",
72
- }}
73
- gap={2}
74
- >
72
+ width: "100%"
73
+ }}>
75
74
  {actionButtons &&
76
75
  actionButtons.map((Action, index) => (
77
76
  <Box key={index} component={Action}></Box>
@@ -105,7 +104,6 @@ export default function NavVertical({ openNav, onCloseNav }) {
105
104
  }}
106
105
  >
107
106
  <NavToggleButton />
108
-
109
107
  {lgUp ? (
110
108
  <Stack
111
109
  sx={{
@@ -121,10 +119,12 @@ export default function NavVertical({ openNav, onCloseNav }) {
121
119
  <Drawer
122
120
  open={openNav}
123
121
  onClose={onCloseNav}
124
- PaperProps={{
125
- sx: {
126
- width: NAV.W_VERTICAL,
127
- },
122
+ slotProps={{
123
+ paper: {
124
+ sx: {
125
+ width: NAV.W_VERTICAL,
126
+ },
127
+ }
128
128
  }}
129
129
  >
130
130
  {renderContent}
@@ -104,12 +104,11 @@ export default function Footer() {
104
104
 
105
105
  <Stack
106
106
  direction="row"
107
- justifyContent={{ xs: "center", md: "flex-start" }}
108
107
  sx={{
108
+ justifyContent: { xs: "center", md: "flex-start" },
109
109
  mt: 3,
110
- mb: { xs: 5, md: 0 },
111
- }}
112
- ></Stack>
110
+ mb: { xs: 5, md: 0 }
111
+ }}></Stack>
113
112
  </Grid>
114
113
 
115
114
  <Grid xs={12} md={6}>
@@ -118,9 +117,10 @@ export default function Footer() {
118
117
  <Stack
119
118
  key={list.headline}
120
119
  spacing={2}
121
- alignItems={{ xs: "center", md: "flex-start" }}
122
- sx={{ width: 1 }}
123
- >
120
+ sx={{
121
+ alignItems: { xs: "center", md: "flex-start" },
122
+ width: 1
123
+ }}>
124
124
  <Typography component="div" variant="overline">
125
125
  {list.headline}
126
126
  </Typography>
@@ -61,8 +61,10 @@ export default function Header() {
61
61
  {mdUp && <NavDesktop data={topMenu} />}
62
62
 
63
63
  <Stack
64
- alignItems="center"
65
64
  direction={{ xs: "row", md: "row-reverse" }}
65
+ sx={{
66
+ alignItems: "center"
67
+ }}
66
68
  >
67
69
  <NotificationsPopover />
68
70
 
@@ -74,7 +76,6 @@ export default function Header() {
74
76
  </Stack>
75
77
  </Container>
76
78
  </Toolbar>
77
-
78
79
  {offsetTop && <HeaderShadow />}
79
80
  </AppBar>
80
81
  );
@@ -103,18 +103,19 @@ function NavSubList({ data, subheader, sx, ...other }) {
103
103
  return (
104
104
  <Stack
105
105
  spacing={2}
106
- flexGrow={1}
107
- alignItems="flex-start"
108
- sx={{
106
+ {...other}
107
+ sx={[{
108
+ flexGrow: 1,
109
+ alignItems: "flex-start",
109
110
  pb: 2,
111
+
110
112
  ...(dashboard && {
111
113
  pb: 0,
112
114
  maxWidth: { md: 1 / 3, lg: 540 },
113
115
  }),
114
- ...sx,
115
- }}
116
- {...other}
117
- >
116
+
117
+ ...sx
118
+ }, ...(Array.isArray(other.sx) ? other.sx : [other.sx])]}>
118
119
  <ListSubheader
119
120
  disableSticky
120
121
  sx={{
@@ -126,7 +127,6 @@ function NavSubList({ data, subheader, sx, ...other }) {
126
127
  >
127
128
  {subheader}
128
129
  </ListSubheader>
129
-
130
130
  {data.map((item) =>
131
131
  dashboard ? (
132
132
  <NavItemDashboard key={item.title} path={item.path} />
@@ -36,15 +36,16 @@ export default function NavMobile({ data }) {
36
36
  <IconButton onClick={handleOpenMenu} sx={{ ml: 1 }}>
37
37
  <SvgColor src="/assets/icons/navbar/ic_menu_item.svg" />
38
38
  </IconButton>
39
-
40
39
  <Drawer
41
40
  open={openMenu}
42
41
  onClose={handleCloseMenu}
43
- PaperProps={{
44
- sx: {
45
- pb: 5,
46
- width: 260,
47
- },
42
+ slotProps={{
43
+ paper: {
44
+ sx: {
45
+ pb: 5,
46
+ width: 260,
47
+ },
48
+ }
48
49
  }}
49
50
  >
50
51
  <Scrollbar>
@@ -1,5 +1,5 @@
1
1
  import Container from "@mui/material/Container";
2
- import Grid from "@mui/material/Unstable_Grid2";
2
+ import Grid from "@mui/material/Grid";
3
3
  import React from "react";
4
4
  import Typography from "@mui/material/Typography";
5
5
  // ----------------------------------------------------------------------
@@ -12,14 +12,20 @@ export default function TwoSideLayout({ rows, title }) {
12
12
  <Typography variant="h4" sx={{ mb: 5 }}>
13
13
  {title}
14
14
  </Typography>
15
-
16
15
  {Object.values(rowData).map((array, index) => {
17
16
  const eleman_sayisi = array.length;
18
17
  const grid_sayisi = 12 / eleman_sayisi;
19
18
  return (
20
19
  <Grid container spacing={3} key={index}>
21
20
  {array.map((component, i) => (
22
- <Grid item xs={12} sm={6} md={grid_sayisi} key={i}>
21
+ <Grid
22
+ key={i}
23
+ size={{
24
+ xs: 12,
25
+ sm: 6,
26
+ md: grid_sayisi,
27
+ }}
28
+ >
23
29
  {component}
24
30
  </Grid>
25
31
  ))}
@@ -44,20 +44,20 @@ export default function AuthClassicLayout({ image, title }) {
44
44
 
45
45
  const renderSection = (
46
46
  <Stack
47
- flexGrow={1}
48
47
  spacing={10}
49
- alignItems="center"
50
- justifyContent="center"
51
48
  sx={{
49
+ flexGrow: 1,
50
+ alignItems: "center",
51
+ justifyContent: "center",
52
+
52
53
  ...bgGradient({
53
54
  color: alpha(
54
55
  theme.palette.background.default,
55
56
  theme.palette.mode === "light" ? 0.88 : 0.94
56
57
  ),
57
58
  imgUrl: "https://minimals.cc/assets/background/overlay_2.jpg",
58
- }),
59
- }}
60
- >
59
+ })
60
+ }}>
61
61
  <Typography variant="h3" sx={{ maxWidth: 480, textAlign: "center" }}>
62
62
  {title || "Hi, Welcome back"}
63
63
  </Typography>
@@ -59,11 +59,10 @@ export default function AuthModernLayout({ image }) {
59
59
 
60
60
  const renderSection = (
61
61
  <Stack
62
- flexGrow={1}
63
62
  sx={{
64
- position: "relative",
65
- }}
66
- >
63
+ flexGrow: 1,
64
+ position: "relative"
65
+ }}>
67
66
  <Box
68
67
  component="img"
69
68
  alt="auth"
@@ -175,10 +175,11 @@ function ProjectBar() {
175
175
  const renderButton = (
176
176
  <Stack
177
177
  direction="row"
178
- alignItems="center"
179
- justifyContent={"flex-start"}
180
- sx={{ width: "100%" }}
181
- >
178
+ sx={{
179
+ alignItems: "center",
180
+ justifyContent: "flex-start",
181
+ width: "100%"
182
+ }}>
182
183
  <IconButton
183
184
  data-cy="open-select-bar-button"
184
185
  onClick={search.onTrue}
@@ -270,7 +271,6 @@ function ProjectBar() {
270
271
  return (
271
272
  <>
272
273
  {renderButton}
273
-
274
274
  <Dialog
275
275
  data-cy="select-bar-dialog"
276
276
  fullWidth={true}
@@ -281,17 +281,19 @@ function ProjectBar() {
281
281
  enter: theme.transitions.duration.shortest,
282
282
  exit: 0,
283
283
  }}
284
- PaperProps={{
285
- sx: {
286
- mt: 15,
287
- overflow: "unset",
288
- },
289
- }}
290
284
  sx={{
291
285
  [`& .${dialogClasses.container}`]: {
292
286
  alignItems: "flex-start",
293
287
  },
294
288
  }}
289
+ slotProps={{
290
+ paper: {
291
+ sx: {
292
+ mt: 15,
293
+ overflow: "unset",
294
+ },
295
+ }
296
+ }}
295
297
  >
296
298
  <Box sx={{ p: 3, borderBottom: `solid 1px gray` }}>
297
299
  <InputBase
@@ -41,11 +41,12 @@ export default function HeaderSim() {
41
41
  >
42
42
  <Logo />
43
43
 
44
- <Stack direction="row" alignItems="center" spacing={1}>
44
+ <Stack direction="row" spacing={1} sx={{
45
+ alignItems: "center"
46
+ }}>
45
47
  <SettingsButton />
46
48
  </Stack>
47
49
  </Toolbar>
48
-
49
50
  {offsetTop && <HeaderShadow />}
50
51
  </AppBar>
51
52
  );
@@ -52,7 +52,9 @@ export default function HeaderSimple({
52
52
  }),
53
53
  }}
54
54
  >
55
- <Stack direction="row" alignItems="center" spacing={5}>
55
+ <Stack direction="row" spacing={5} sx={{
56
+ alignItems: "center"
57
+ }}>
56
58
  <Logo />
57
59
  <ProjectBar
58
60
  handleItemSelect={handleItemSelect}
@@ -60,7 +62,9 @@ export default function HeaderSimple({
60
62
  setSelectedItem={setSelectedItem}
61
63
  />
62
64
  </Stack>
63
- <Stack direction="row" alignItems="center" spacing={1}>
65
+ <Stack direction="row" spacing={1} sx={{
66
+ alignItems: "center"
67
+ }}>
64
68
  {mdUp && <NavDesktop data={topMenu} />}
65
69
  <NotificationsPopover />
66
70
 
@@ -69,7 +73,6 @@ export default function HeaderSimple({
69
73
  <AccountPopover />
70
74
  </Stack>
71
75
  </Toolbar>
72
-
73
76
  {offsetTop && <HeaderShadow />}
74
77
  </AppBar>
75
78
  );
@@ -69,9 +69,13 @@ export default function NotificationsPopover() {
69
69
  const renderHead = (
70
70
  <Stack
71
71
  direction="row"
72
- alignItems="center"
73
- sx={{ py: 2, pl: 2.5, pr: 1, minHeight: 68 }}
74
- >
72
+ sx={{
73
+ alignItems: "center",
74
+ py: 2,
75
+ pl: 2.5,
76
+ pr: 1,
77
+ minHeight: 68
78
+ }}>
75
79
  <Typography variant="h6" sx={{ flexGrow: 1 }}>
76
80
  Notifications
77
81
  </Typography>
@@ -140,28 +144,29 @@ export default function NotificationsPopover() {
140
144
  <Iconify icon="solar:bell-bing-bold-duotone" width={24} />
141
145
  </Badge>
142
146
  </IconButton>
143
-
144
147
  <Drawer
145
148
  open={drawer.value}
146
149
  onClose={drawer.onFalse}
147
150
  anchor="right"
148
151
  slotProps={{
149
152
  backdrop: { invisible: true },
150
- }}
151
- PaperProps={{
152
- sx: { width: 1, maxWidth: 420 },
153
- }}
154
- >
153
+
154
+ paper: {
155
+ sx: { width: 1, maxWidth: 420 },
156
+ }
157
+ }}>
155
158
  {renderHead}
156
159
 
157
160
  <Divider />
158
161
 
159
162
  <Stack
160
163
  direction="row"
161
- alignItems="center"
162
- justifyContent="space-between"
163
- sx={{ pl: 2.5, pr: 1 }}
164
- >
164
+ sx={{
165
+ alignItems: "center",
166
+ justifyContent: "space-between",
167
+ pl: 2.5,
168
+ pr: 1
169
+ }}>
165
170
  {renderTabs}
166
171
  <IconButton onClick={handleMarkAllAsRead}>
167
172
  <Iconify icon="solar:settings-bold-duotone" />
@@ -23,15 +23,14 @@ export default function NotificationItem({ notification }) {
23
23
  />
24
24
  ) : (
25
25
  <Stack
26
- alignItems="center"
27
- justifyContent="center"
28
26
  sx={{
27
+ alignItems: "center",
28
+ justifyContent: "center",
29
29
  width: 40,
30
30
  height: 40,
31
31
  borderRadius: "50%",
32
- bgcolor: "background.neutral",
33
- }}
34
- >
32
+ bgcolor: "background.neutral"
33
+ }}>
35
34
  <Box
36
35
  component="img"
37
36
  src={`/assets/icons/notification/${
@@ -54,8 +53,6 @@ export default function NotificationItem({ notification }) {
54
53
  secondary={
55
54
  <Stack
56
55
  direction="row"
57
- alignItems="center"
58
- sx={{ typography: "caption", color: "text.disabled" }}
59
56
  divider={
60
57
  <Box
61
58
  sx={{
@@ -67,7 +64,11 @@ export default function NotificationItem({ notification }) {
67
64
  }}
68
65
  />
69
66
  }
70
- >
67
+ sx={{
68
+ alignItems: "center",
69
+ typography: "caption",
70
+ color: "text.disabled"
71
+ }}>
71
72
  {fToNow(notification.createdAt)}
72
73
  {notification.category}
73
74
  </Stack>
@@ -101,7 +102,9 @@ export default function NotificationItem({ notification }) {
101
102
  );
102
103
 
103
104
  const projectAction = (
104
- <Stack alignItems="flex-start">
105
+ <Stack sx={{
106
+ alignItems: "flex-start"
107
+ }}>
105
108
  <Box
106
109
  sx={{
107
110
  p: 1.5,
@@ -142,9 +145,10 @@ export default function NotificationItem({ notification }) {
142
145
  <Stack
143
146
  spacing={1}
144
147
  direction={{ xs: "column", sm: "row" }}
145
- flexGrow={1}
146
- sx={{ minWidth: 0 }}
147
- >
148
+ sx={{
149
+ flexGrow: 1,
150
+ minWidth: 0
151
+ }}>
148
152
  <ListItemText
149
153
  disableTypography
150
154
  primary={
@@ -160,8 +164,6 @@ export default function NotificationItem({ notification }) {
160
164
  secondary={
161
165
  <Stack
162
166
  direction="row"
163
- alignItems="center"
164
- sx={{ typography: "caption", color: "text.disabled" }}
165
167
  divider={
166
168
  <Box
167
169
  sx={{
@@ -173,7 +175,11 @@ export default function NotificationItem({ notification }) {
173
175
  }}
174
176
  />
175
177
  }
176
- >
178
+ sx={{
179
+ alignItems: "center",
180
+ typography: "caption",
181
+ color: "text.disabled"
182
+ }}>
177
183
  <span>2.3 GB</span>
178
184
  <span>30 min ago</span>
179
185
  </Stack>
@@ -188,7 +194,13 @@ export default function NotificationItem({ notification }) {
188
194
  );
189
195
 
190
196
  const tagsAction = (
191
- <Stack direction="row" spacing={0.75} flexWrap="wrap" sx={{ mt: 1.5 }}>
197
+ <Stack
198
+ direction="row"
199
+ spacing={0.75}
200
+ sx={{
201
+ flexWrap: "wrap",
202
+ mt: 1.5
203
+ }}>
192
204
  <Label variant="outlined" color="info">
193
205
  Design
194
206
  </Label>