#820 add missing react import in visibility field

This commit is contained in:
lethemanh
2026-04-24 15:30:40 +07:00
committed by Benoit TELLIER
parent a0fe0924f1
commit 338fd91194
@@ -1,3 +1,4 @@
import React from 'react'
import { ToggleButton, ToggleButtonGroup } from '@linagora/twake-mui'
import { Public as PublicIcon } from '@mui/icons-material'
import LockOutlineIcon from '@mui/icons-material/LockOutline'
@@ -25,7 +26,7 @@ export const VisibilityField: React.FC<VisibilityFieldProps> = ({
<ToggleButtonGroup
value={eventClass}
exclusive
onChange={(_e, newValue: string) => {
onChange={(_e, newValue: string | null) => {
if (newValue !== null) {
setEventClass(newValue as 'PUBLIC' | 'PRIVATE' | 'CONFIDENTIAL')
}