diff --git a/src/components/App.tsx b/src/components/App.tsx index a37f7530..5bf550a0 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -190,7 +190,7 @@ export class App extends React.Component { language={getLanguage()} onRoomCreate={this.createRoom} onRoomDestroy={this.destroyRoom} - onToggleLock={this.toggleLock} + onLockToggle={this.toggleLock} />
void; onRoomCreate: () => void; onRoomDestroy: () => void; - onToggleLock: () => void; + onLockToggle: () => void; } export const LayerUI = React.memo( @@ -47,7 +47,7 @@ export const LayerUI = React.memo( setElements, onRoomCreate, onRoomDestroy, - onToggleLock, + onLockToggle, }: LayerUIProps) => { const isMobile = useIsMobile(); @@ -101,6 +101,7 @@ export const LayerUI = React.memo( setAppState={setAppState} onRoomCreate={onRoomCreate} onRoomDestroy={onRoomDestroy} + onLockToggle={onLockToggle} /> ) : ( <> @@ -159,9 +160,8 @@ export const LayerUI = React.memo( diff --git a/src/components/LockIcon.tsx b/src/components/LockIcon.tsx index e7aedd8f..1cde1f53 100644 --- a/src/components/LockIcon.tsx +++ b/src/components/LockIcon.tsx @@ -12,7 +12,6 @@ type LockIconProps = { checked: boolean; onChange?(): void; size?: LockIconSize; - isButton?: boolean; }; const DEFAULT_SIZE: LockIconSize = "m"; @@ -46,9 +45,7 @@ export function LockIcon(props: LockIconProps) { return (