From 2bf04c12b004155c1d12aedc5c77382fedd6adbe Mon Sep 17 00:00:00 2001 From: Luca Burgio Date: Sun, 17 Dec 2023 10:48:14 +0100 Subject: [PATCH] fixed discord link and small prettier fixes --- iconoir.com/components/NavigationItem.tsx | 4 ++-- iconoir.com/components/Slider.tsx | 8 ++++---- iconoir.com/lib/constants.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/iconoir.com/components/NavigationItem.tsx b/iconoir.com/components/NavigationItem.tsx index 2c297015..20bcee57 100644 --- a/iconoir.com/components/NavigationItem.tsx +++ b/iconoir.com/components/NavigationItem.tsx @@ -29,8 +29,8 @@ export function NavigationItem({ activeMatch ? router.asPath.startsWith(activeMatch) : href.slice(1) - ? router.asPath.slice(1).startsWith(href.slice(1)) - : router.asPath === href + ? router.asPath.slice(1).startsWith(href.slice(1)) + : router.asPath === href } > {children} diff --git a/iconoir.com/components/Slider.tsx b/iconoir.com/components/Slider.tsx index bcae5e52..461337d3 100644 --- a/iconoir.com/components/Slider.tsx +++ b/iconoir.com/components/Slider.tsx @@ -73,13 +73,13 @@ function Thumb({ state, trackRef, index }: ThumbProps) { backgroundColor: isFocusVisible ? 'var(--accent)' : state.isThumbDragging(index) - ? 'var(--g6)' - : 'var(--white)', + ? 'var(--g6)' + : 'var(--white)', scale: isFocusVisible ? '1.0' : state.isThumbDragging(index) - ? '1.3' - : '1.0', + ? '1.3' + : '1.0', }} > diff --git a/iconoir.com/lib/constants.ts b/iconoir.com/lib/constants.ts index ba181355..ef53a8f9 100644 --- a/iconoir.com/lib/constants.ts +++ b/iconoir.com/lib/constants.ts @@ -26,7 +26,7 @@ export const SHARE_LINK = 'https://twitter.com/intent/tweet?text=Your%20new%20free%20icons%20library.%20No%20premium%20options%20or%20signups%20by%20%40burgioluca%20&url=https%3A%2F%2Ficonoir.com' as const; export const SUPPORT_LINK = 'https://opencollective.com/iconoir/donate?interval=month&amount=10' as const; -export const DISCORD_LINK = 'https://discord.gg/c3uzjx6k' as const; +export const DISCORD_LINK = 'https://discord.gg/txXcKCAmKW' as const; export const FEEDBACK_LINK = 'https://forms.gle/3HvwVYow7D6T8zad7' as const; export const PRIVACY_LINK = 'https://www.freeprivacypolicy.com/live/ba00d743-a0cd-44f8-8cb5-6f58911db0fb' as const;