Skip to content

Commit ff0804f

Browse files
authored
Merge pull request #767 from zesty-io/marketplace-updates
Marketplace updates
2 parents 5bfb008 + 50c4eb9 commit ff0804f

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

src/components/marketplace/landing/MainCard.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const MainCard = ({
146146
component="p"
147147
>
148148
{meta_description ||
149-
meta.web.seo_meta_description ||
149+
meta?.web.seo_meta_description ||
150150
FillerContent.description}
151151
</Typography>
152152

src/views/marketplace/Extension.js

+17-4
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ const InstallButton = ({ data, theme }) => {
111111
const Extension = (props) => {
112112
const theme = useTheme();
113113
const isSM = useMediaQuery(theme.breakpoints.down('md'));
114+
const isDarkMode = theme.palette.mode === 'dark';
114115

115116
const links = [
116117
{
@@ -247,7 +248,7 @@ const Extension = (props) => {
247248
</Box>
248249
</Box>
249250
</Grid>
250-
<Grid item sm={12} md={4}>
251+
<Grid sx={{ width: '100%' }} item sm={12} md={4}>
251252
<Box>
252253
<InstallButton data={props} theme={theme} />
253254
<Box
@@ -256,7 +257,11 @@ const Extension = (props) => {
256257
display: 'flex',
257258
flexDirection: 'column',
258259
gap: 4,
259-
border: `1px solid ${theme.palette.common.grey}`,
260+
border: `1px solid ${
261+
isDarkMode
262+
? theme.palette.common.white
263+
: theme.palette.common.grey
264+
}`,
260265
borderRadius: 2,
261266
background: theme.palette.background.paper,
262267
mt: 2,
@@ -315,7 +320,11 @@ const Extension = (props) => {
315320
p: 5,
316321
display: 'flex',
317322
flexDirection: 'column',
318-
border: `1px solid ${theme.palette.common.grey}`,
323+
border: `1px solid ${
324+
isDarkMode
325+
? theme.palette.common.white
326+
: theme.palette.common.grey
327+
}`,
319328
borderRadius: 2,
320329
background: theme.palette.background.paper,
321330
mt: 2,
@@ -364,7 +373,11 @@ const Extension = (props) => {
364373
p: 5,
365374
display: 'flex',
366375
flexDirection: 'column',
367-
border: `1px solid ${theme.palette.common.grey}`,
376+
border: `1px solid ${
377+
isDarkMode
378+
? theme.palette.common.white
379+
: theme.palette.common.grey
380+
}`,
368381
borderRadius: 2,
369382
background: theme.palette.background.paper,
370383
mt: 2,

0 commit comments

Comments
 (0)