From 3d738d0e1bf9e8961bd304d03fc605e63de776f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Sun, 23 Oct 2022 08:50:44 +0100 Subject: [PATCH] refactor: moved options up --- examples/web/react/components/display/display.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web/react/components/display/display.tsx b/examples/web/react/components/display/display.tsx index 0c97e9c5..61c49515 100644 --- a/examples/web/react/components/display/display.tsx +++ b/examples/web/react/components/display/display.tsx @@ -21,8 +21,8 @@ export const Display: FC<DisplayProps> = ({ size = "small", style = [] }) => { - const classes = () => ["display", size, ...style].join(" "); options = { ...options, ...{ width: 320, height: 288 } }; + const classes = () => ["display", size, ...style].join(" "); if (!options.scale) { options.scale = window.devicePixelRatio ? window.devicePixelRatio : 1; } -- GitLab