Skip to content

Commit

Permalink
refactor(frontend): add as const
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Nov 10, 2023
1 parent 67ea522 commit c6a1d36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/utils/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ label.Mui-focused {
.MuiLinearProgress-bar {
background-color: var(--theme-color);
}`;
}` as const;
}

const preset1 = `:root {
Expand All @@ -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");
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c6a1d36

Please sign in to comment.