Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions packages/ui/src/views/marketplaces/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,22 @@ const MenuProps = {
}
}

const getSelectStyles = (borderColor, isDarkMode) => ({
width: '100%',
'& .MuiOutlinedInput-notchedOutline': {
borderRadius: 2,
borderColor: borderColor
},
'& .MuiSelect-select': {
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap'
},
'& .MuiSvgIcon-root': {
color: isDarkMode ? '#fff' : 'inherit'
}
})

// ==============================|| Marketplace ||============================== //

const Marketplace = () => {
Expand Down Expand Up @@ -130,16 +146,6 @@ const Marketplace = () => {
setShowShareTemplateDialog(true)
}

const getSelectStyles = (borderColor, isDarkMode) => ({
'& .MuiOutlinedInput-notchedOutline': {
borderRadius: 2,
borderColor: borderColor
},
'& .MuiSvgIcon-root': {
color: isDarkMode ? '#fff' : 'inherit'
}
})

const handleTabChange = (event, newValue) => {
if (newValue === 1 && !getAllCustomTemplatesApi.data) {
getAllCustomTemplatesApi.request()
Expand Down Expand Up @@ -481,7 +487,7 @@ const Marketplace = () => {
display: 'flex',
flexDirection: 'column',
justifyContent: 'end',
minWidth: 120
width: MenuProps.PaperProps.style.width
}}
>
<InputLabel size='small' id='filter-badge-label'>
Expand Down Expand Up @@ -517,7 +523,7 @@ const Marketplace = () => {
display: 'flex',
flexDirection: 'column',
justifyContent: 'end',
minWidth: 120
width: MenuProps.PaperProps.style.width
}}
>
<InputLabel size='small' id='type-badge-label'>
Expand Down Expand Up @@ -553,7 +559,7 @@ const Marketplace = () => {
display: 'flex',
flexDirection: 'column',
justifyContent: 'end',
minWidth: 120
width: MenuProps.PaperProps.style.width
}}
>
<InputLabel size='small' id='type-fw-label'>
Expand Down