Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onClick={() => {
this.props.onDismiss();
formatTable(this.props.editor, format);
}}>
{text}
private onCustomizeFormat = () => {
this.props.onDismiss();
let format = createTableFormat(
this.evenBgColor.current.value || undefined,
this.oddBgColor.current.value || undefined,
this.topBorderColor.current.value || undefined,
this.bottomBorderColor.current.value || undefined,
this.verticalBorderColor.current.value || undefined
);
formatTable(this.props.editor, format);
};
}
private onFormatTable = (format: Partial) => {
formatTable(this.editor, format);
};