Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

🚨(frontend) update deprecated react-aria Section components

lebaudantoine36ea44befc03
diff --git a/src/frontend/src/features/rooms/livekit/components/controls/Options/OptionsMenuItems.tsx b/src/frontend/src/features/rooms/livekit/components/controls/Options/OptionsMenuItems.tsx
index 55300f96..0574c09f 100644
--- a/src/frontend/src/features/rooms/livekit/components/controls/Options/OptionsMenuItems.tsx
+++ b/src/frontend/src/features/rooms/livekit/components/controls/Options/OptionsMenuItems.tsx
@@ -3,7 +3,7 @@ import {
RiMegaphoneLine,
RiSettings3Line,
} from '@remixicon/react'
-import { MenuItem, Menu as RACMenu, Section } from 'react-aria-components'
+import { MenuItem, Menu as RACMenu, MenuSection } from 'react-aria-components'
import { useTranslation } from 'react-i18next'
import { Separator } from '@/primitives/Separator'
import { useSidePanel } from '../../../hooks/useSidePanel'
@@ -23,7 +23,7 @@ export const OptionsMenuItems = () => {
width: '300px',
}}
>
- <Section>
+ <MenuSection>
<MenuItem
onAction={() => toggleEffects()}
className={menuRecipe({ icon: true }).item}
@@ -31,9 +31,9 @@ export const OptionsMenuItems = () => {
<RiAccountBoxLine size={20} />
{t('effects')}
</MenuItem>
- </Section>
+ </MenuSection>
<Separator />
- <Section>
+ <MenuSection>
<MenuItem
href={GRIST_FORM}
target="_blank"
@@ -49,7 +49,7 @@ export const OptionsMenuItems = () => {
<RiSettings3Line size={20} />
{t('settings')}
</MenuItem>
- </Section>
+ </MenuSection>
</RACMenu>
)
}