[Glitch] Reset background color on media modal
Port 882afd774863f5e6779daa5271a29107bffe16ee to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
08ef682995
commit
474cab03bd
@ -116,6 +116,9 @@ export const MediaModal: FC<MediaModalProps> = forwardRef<
|
||||
onChangeBackgroundColor(backgroundColor);
|
||||
}
|
||||
}
|
||||
return () => {
|
||||
onChangeBackgroundColor(null);
|
||||
};
|
||||
}, [currentMedia, onChangeBackgroundColor]);
|
||||
|
||||
const [viewportDimensions, setViewportDimensions] = useState<{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user