From c6a1d363b16ff3a0a087aab180d6bd2a333907fd Mon Sep 17 00:00:00 2001 From: SARDONYX-sard <68905624+SARDONYX-sard@users.noreply.github.com> Date: Fri, 10 Nov 2023 14:12:51 +0900 Subject: [PATCH] refactor(frontend): add `as const` --- frontend/src/utils/styles.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/utils/styles.ts b/frontend/src/utils/styles.ts index df4b53e..38c698f 100644 --- a/frontend/src/utils/styles.ts +++ b/frontend/src/utils/styles.ts @@ -56,7 +56,7 @@ label.Mui-focused { .MuiLinearProgress-bar { background-color: var(--theme-color); -}`; +}` as const; } const preset1 = `:root { @@ -68,7 +68,7 @@ const preset1 = `:root { --image-url: url("https://i.redd.it/red-forest-1920-1080-v0-s9u8ki2rr70a1.jpg?s=139edf608c428656505a143635a0687dec086229") } -${createPreset()}`; +${createPreset()}` as const; const preset2 = `:root { --image-url: url("https://images.pexels.com/photos/2817421/pexels-photo-2817421.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750& dpr=1"); @@ -110,7 +110,7 @@ const preset3 = `:root { --image-url: url("https://images.pexels.com/photos/6162265/pexels-photo-6162265.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"); } -${createPreset()}`; +${createPreset()}` as const; export const presetStyles = { "1": preset1,