#820 add missing react import in visibility field
This commit is contained in:
committed by
Benoit TELLIER
parent
a0fe0924f1
commit
338fd91194
@@ -1,3 +1,4 @@
|
|||||||
|
import React from 'react'
|
||||||
import { ToggleButton, ToggleButtonGroup } from '@linagora/twake-mui'
|
import { ToggleButton, ToggleButtonGroup } from '@linagora/twake-mui'
|
||||||
import { Public as PublicIcon } from '@mui/icons-material'
|
import { Public as PublicIcon } from '@mui/icons-material'
|
||||||
import LockOutlineIcon from '@mui/icons-material/LockOutline'
|
import LockOutlineIcon from '@mui/icons-material/LockOutline'
|
||||||
@@ -25,7 +26,7 @@ export const VisibilityField: React.FC<VisibilityFieldProps> = ({
|
|||||||
<ToggleButtonGroup
|
<ToggleButtonGroup
|
||||||
value={eventClass}
|
value={eventClass}
|
||||||
exclusive
|
exclusive
|
||||||
onChange={(_e, newValue: string) => {
|
onChange={(_e, newValue: string | null) => {
|
||||||
if (newValue !== null) {
|
if (newValue !== null) {
|
||||||
setEventClass(newValue as 'PUBLIC' | 'PRIVATE' | 'CONFIDENTIAL')
|
setEventClass(newValue as 'PUBLIC' | 'PRIVATE' | 'CONFIDENTIAL')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user