From 428752542d1d8def898ff383bbdff6bb2915d321 Mon Sep 17 00:00:00 2001 From: Panayiotis Lipiridis Date: Mon, 28 Dec 2020 01:26:38 +0200 Subject: [PATCH] function --- src/components/ButtonIconCycle.tsx | 4 ++-- src/excalidraw-app/index.tsx | 4 ++-- src/renderer/renderElement.ts | 6 +++--- src/tests/resize.test.tsx | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/ButtonIconCycle.tsx b/src/components/ButtonIconCycle.tsx index 1159a1f42..ff1a1a047 100644 --- a/src/components/ButtonIconCycle.tsx +++ b/src/components/ButtonIconCycle.tsx @@ -14,11 +14,11 @@ export const ButtonIconCycle = ({ }) => { const current = options.find((op) => op.value === value); - function cycle() { + const cycle = () => { const index = options.indexOf(current!); const next = (index + 1) % options.length; onChange(options[next].value); - } + }; return (