{
+ ref={(el) => {
if (el) {
gallery.current = el;
}
@@ -131,7 +131,7 @@ const Picker = function({
aria-keyshortcuts={keyBindings[i]}
style={{ backgroundColor: _color }}
key={_color}
- ref={el => {
+ ref={(el) => {
if (el && i === 0) {
firstItem.current = el;
}
@@ -145,9 +145,7 @@ const Picker = function({
>
{_color === "transparent" ? (
- ) : (
- undefined
- )}
+ ) : undefined}
{keyBindings[i]}
))}
@@ -155,7 +153,7 @@ const Picker = function({
{
+ onChange={(color) => {
onChange(color);
}}
ref={colorInput}
@@ -196,7 +194,7 @@ const ColorInput = React.forwardRef(
spellCheck={false}
className="color-picker-input"
aria-label={label}
- onChange={event => {
+ onChange={(event) => {
const value = event.target.value.toLowerCase();
if (value.match(colorRegex)) {
onChange(value === "transparent" ? "transparent" : `#${value}`);
@@ -204,7 +202,7 @@ const ColorInput = React.forwardRef(
setInnerValue(value);
}}
value={(innerValue || "").replace(/^#/, "")}
- onPaste={event => onChange(event.clipboardData.getData("text"))}
+ onPaste={(event) => onChange(event.clipboardData.getData("text"))}
onBlur={() => setInnerValue(color)}
ref={inputRef}
/>
@@ -244,7 +242,7 @@ export function ColorPicker({
{
+ onChange={(color) => {
onChange(color);
}}
/>
@@ -255,7 +253,7 @@ export function ColorPicker({
{
+ onChange={(changedColor) => {
onChange(changedColor);
}}
onClose={() => {
diff --git a/src/components/ContextMenu.tsx b/src/components/ContextMenu.tsx
index e2798cfd..e0a0fde7 100644
--- a/src/components/ContextMenu.tsx
+++ b/src/components/ContextMenu.tsx
@@ -26,7 +26,7 @@ function ContextMenu({ options, onCloseRequest, top, left }: Props) {
>
event.preventDefault()}
+ onContextMenu={(event) => event.preventDefault()}
>
{options.map((option, idx) => (
-
@@ -69,7 +69,7 @@ function handleClose() {
export default {
push(params: ContextMenuParams) {
const options = Array.of();
- params.options.forEach(option => {
+ params.options.forEach((option) => {
if (option) {
options.push(option);
}
diff --git a/src/components/ExportDialog.tsx b/src/components/ExportDialog.tsx
index ff8cc7f2..bdb450ad 100644
--- a/src/components/ExportDialog.tsx
+++ b/src/components/ExportDialog.tsx
@@ -152,7 +152,7 @@ function ExportModal({
{actionManager.renderAction("changeProjectName")}