Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Last active October 14, 2020 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/16459e46461ea2d6ac970089a07c82d1 to your computer and use it in GitHub Desktop.
Save ljmotta/16459e46461ea2d6ac970089a07c82d1 to your computer and use it in GitHub Desktop.
Base64Png Editor Invert Tweaker
const [invert, setInvert] = useState("0");
const tweakInvert = useCallback((value: string) => {
setInvert(value);
props.envelopeContext.channelApi.notifications.receive_newEdit({ id: new Date().getTime().toString() });
}, [invert]);
const [disabled, setDisabled] = useState(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment