Skip to content

Commit f3b78d2

Browse files
authored
Merge branch 'master' into docs_#989
2 parents d50f69a + 5142c21 commit f3b78d2

File tree

7 files changed

+35
-12
lines changed

7 files changed

+35
-12
lines changed

src/custom/Carousel/style.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const CarouselButton = styled('button')(({ theme }) => ({
66
transform: 'translateY(-50%)',
77
zIndex: '1',
88
background: theme.palette.background.paper,
9+
color: theme.palette.mode === 'dark' ? theme.palette.common.white : theme.palette.common.black,
910
border: 'none',
1011
cursor: 'pointer',
1112
padding: '0.5rem',

src/custom/CatalogFilterSection/CatalogFilterSidebar.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useCallback, useState } from 'react';
44
import { Box, Drawer, Typography } from '../../base';
55
import { CloseIcon } from '../../icons';
66
import { darkTeal } from '../../theme';
7-
import { SLIGHT_BLUE } from '../../theme/colors/colors';
7+
import { darkModalGradient, lightModalGradient } from '../../theme/colors/colors';
88
import { CloseBtn } from '../Modal';
99
import CatalogFilterSidebarState from './CatalogFilterSidebarState';
1010
import {
@@ -152,7 +152,15 @@ const CatalogFilterSidebar: React.FC<CatalogFilterSidebarProps> = ({
152152
styleProps={appliedStyleProps}
153153
/>
154154
</Box>
155-
<Box sx={{ backgroundColor: SLIGHT_BLUE, height: '5vh' }} />
155+
<Box
156+
sx={{
157+
background:
158+
theme.palette.mode === 'light'
159+
? lightModalGradient.fotter
160+
: darkModalGradient.fotter,
161+
height: '5vh'
162+
}}
163+
/>
156164
</Box>
157165
</Drawer>
158166
</FilterDrawerDiv>

src/custom/CatalogFilterSection/FilterSection.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ const FilterSection: React.FC<FilterSectionProps> = ({
6262
backgroundColor: styleProps.sectionTitleBackgroundColor
6363
}}
6464
>
65-
<Typography variant="h6" fontWeight="bold" fontFamily={styleProps.fontFamily}>
65+
<Typography
66+
sx={{
67+
fontSize: '1rem'
68+
}}
69+
fontWeight="bold"
70+
fontFamily={styleProps.fontFamily}
71+
>
6672
{(sectionDisplayName || filterKey).toUpperCase()}
6773
</Typography>
6874
{openSections[filterKey] ? <ExpandLessIcon /> : <ExpandMoreIcon />}

src/custom/CatalogFilterSection/style.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { styled } from '@mui/material/styles';
22
import { Box, Button, ListItemButton } from '../../base';
3-
import { SLIGHT_BLUE } from '../../theme/colors/colors';
3+
import { darkModalGradient, lightModalGradient } from '../../theme/colors/colors';
44
import { StyleProps } from './CatalogFilterSidebar';
55

66
export const FiltersCardDiv = styled(Box)<{ styleProps: StyleProps }>(({ styleProps }) => ({
@@ -46,12 +46,12 @@ export const FilterButton = styled(Button)(({ theme }) => ({
4646
}
4747
}));
4848

49-
export const FiltersDrawerHeader = styled(Box)(() => ({
49+
export const FiltersDrawerHeader = styled(Box)(({ theme }) => ({
5050
display: 'flex',
5151
justifyContent: 'space-between',
5252
alignItems: 'center',
5353
padding: '0.5rem 1rem',
54-
backgroundColor: SLIGHT_BLUE,
54+
background: theme.palette.mode === 'light' ? lightModalGradient.header : darkModalGradient.header,
5555
height: '10vh'
5656
}));
5757

src/custom/NavigationNavbar/navigationNavbar.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
22
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
3-
import { ListItemTextProps, MenuListProps } from '@mui/material';
3+
import { ListItemTextProps, MenuListProps, useMediaQuery, useTheme } from '@mui/material';
44
import React, { MouseEvent, useState } from 'react';
55
import { Collapse, Divider, ListItemText, MenuItem } from '../../base';
66
import { IconWrapper, MenuItemList, MenuItemSubList, MenuListStyle, SubIconWrapper } from './style';
@@ -13,6 +13,7 @@ type NavigationItem = {
1313
onClick: () => void;
1414
subItems?: NavigationItem[];
1515
addDivider?: boolean;
16+
showOnWeb?: boolean;
1617
};
1718

1819
interface NavigationNavbarProps {
@@ -26,6 +27,8 @@ const NavigationNavbar: React.FC<NavigationNavbarProps> = ({
2627
MenuListProps = {},
2728
ListItemTextProps = {}
2829
}) => {
30+
const theme = useTheme();
31+
const isDesktop = useMediaQuery(theme.breakpoints.up('sm'));
2932
const [openSectionId, setOpenSectionId] = useState<string | null>(null);
3033
const toggleSectionOpen = (sectionId: string, event: MouseEvent<SVGSVGElement>) => {
3134
event.stopPropagation();
@@ -41,6 +44,12 @@ const NavigationNavbar: React.FC<NavigationNavbarProps> = ({
4144
const permission = item.permission ?? true;
4245
const addDivider = item.addDivider ?? false;
4346

47+
const showOnWeb = item.showOnWeb ?? true;
48+
49+
if (!showOnWeb && isDesktop) {
50+
return null;
51+
}
52+
4453
return (
4554
<React.Fragment key={item.id}>
4655
<MenuItem disabled={!permission} onClick={item.onClick}>

src/custom/PerformersSection/styles.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ export const Title = styled(Typography)(({ theme }) => ({
9090
}));
9191

9292
export const StyledCard = styled(Card)<StyledCardProps>(({ theme }) => ({
93-
width: 'inherit',
94-
minWidth: '150px',
93+
width: '200px',
9594
borderRadius: '16px',
9695
position: 'relative',
9796
overflow: 'hidden',

src/hooks/useRoomActivity.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface CollaborationConfigParams {
1919
}
2020

2121
interface CollaborationConfig {
22-
signaling: string[];
22+
signalingUrl: string[];
2323
user: UserProfile;
2424
authToken: string;
2525
refreshAuthToken: () => Promise<string>;
@@ -113,7 +113,7 @@ export const getCollaborationConfig = async ({
113113
};
114114

115115
return {
116-
signaling: [getSignalingUrlFromProviderUrl(provider_url)],
116+
signalingUrl: [getSignalingUrlFromProviderUrl(provider_url)],
117117
user: userProfile,
118118
authToken: accessToken,
119119
refreshAuthToken: refreshToken,
@@ -143,7 +143,7 @@ const subscribeToRoomActivity = async (
143143
});
144144

145145
// Create the websocket connection with proper headers
146-
const ws = new WebSocket(config.signaling[0], ['auth', config.authToken]);
146+
const ws = new WebSocket(config.signalingUrl[0], ['auth', config.authToken]);
147147
wsRef.current = ws;
148148

149149
ws.addEventListener('open', () => {

0 commit comments

Comments
 (0)