From 282789c0191f136a064693d754b581ec8e111585 Mon Sep 17 00:00:00 2001 From: Michael Brusegard <56915010+michaelbrusegard@users.noreply.github.com> Date: Fri, 30 Aug 2024 00:04:13 +0200 Subject: [PATCH] fix: icon names and imports --- src/app/[locale]/(default)/layout.tsx | 3 +- .../(default)/news/(header)/layout.tsx | 4 +- src/app/[locale]/(default)/storage/layout.tsx | 8 ++-- src/app/[locale]/(default)/storage/page.tsx | 12 +++--- src/app/[locale]/layout.tsx | 8 ++-- .../icons/{Facebook.tsx => FacebookIcon.tsx} | 4 +- .../icons/{Github.tsx => GitHubIcon.tsx} | 4 +- .../{Instagram.tsx => InstagramIcon.tsx} | 4 +- .../assets/icons/{Slack.tsx => SlackIcon.tsx} | 4 +- src/components/assets/icons/index.tsx | 4 ++ src/components/assets/sponsors/index.tsx | 2 + src/components/layout/Footer.tsx | 37 +++++++++--------- src/components/layout/Header.tsx | 3 +- src/components/layout/LogoLink.tsx | 8 ++-- src/components/layout/MobileSheet.tsx | 7 ++-- src/components/layout/Nav.tsx | 3 +- src/components/layout/PaginationCarousel.tsx | 7 +--- .../layout/PaginationCarouselSkeleton.tsx | 4 +- src/components/news/ArticleCard.tsx | 9 ++--- src/components/news/ArticleItem.tsx | 8 ++-- src/components/news/CardGrid.tsx | 4 +- src/components/news/CardGridSkeleton.tsx | 6 +-- src/components/news/InternalBadge.tsx | 10 ++--- src/components/news/ItemGrid.tsx | 3 +- src/components/news/ItemGridSkeleton.tsx | 3 +- src/components/profile/AvatarIcon.tsx | 3 +- src/components/settings/DarkModeMenu.tsx | 11 +++--- src/components/settings/ProfileMenu.tsx | 7 ++-- src/components/ui/Avatar.tsx | 3 +- src/components/ui/Badge.tsx | 3 +- src/components/ui/Button.tsx | 3 +- src/components/ui/Card.tsx | 3 +- src/components/ui/Combobox.tsx | 12 +++--- src/components/ui/Command.tsx | 10 ++--- src/components/ui/Dialog.tsx | 7 ++-- src/components/ui/DropdownMenu.tsx | 8 ++-- src/components/ui/Pagination.tsx | 18 +++++---- src/components/ui/Popover.tsx | 3 +- src/components/ui/SearchBar.tsx | 7 ++-- src/components/ui/Select.tsx | 13 +++---- src/components/ui/Separator.tsx | 3 +- src/components/ui/Sheet.tsx | 7 ++-- src/components/ui/Tooltip.tsx | 3 +- src/lib/config.ts | 39 ------------------- src/server/db/schema.ts | 2 - src/server/db/schema/index.ts | 2 + 46 files changed, 128 insertions(+), 208 deletions(-) rename src/components/assets/icons/{Facebook.tsx => FacebookIcon.tsx} (81%) rename src/components/assets/icons/{Github.tsx => GitHubIcon.tsx} (87%) rename src/components/assets/icons/{Instagram.tsx => InstagramIcon.tsx} (84%) rename src/components/assets/icons/{Slack.tsx => SlackIcon.tsx} (89%) create mode 100644 src/components/assets/icons/index.tsx create mode 100644 src/components/assets/sponsors/index.tsx delete mode 100644 src/lib/config.ts delete mode 100644 src/server/db/schema.ts create mode 100644 src/server/db/schema/index.ts diff --git a/src/app/[locale]/(default)/layout.tsx b/src/app/[locale]/(default)/layout.tsx index ac6416d..c01ad96 100644 --- a/src/app/[locale]/(default)/layout.tsx +++ b/src/app/[locale]/(default)/layout.tsx @@ -1,8 +1,7 @@ -import { unstable_setRequestLocale } from 'next-intl/server'; - import { Footer } from '@/components/layout/Footer'; import { Header } from '@/components/layout/Header'; import { Main } from '@/components/layout/Main'; +import { unstable_setRequestLocale } from 'next-intl/server'; type DefaultLayoutProps = { children: React.ReactNode; diff --git a/src/app/[locale]/(default)/news/(header)/layout.tsx b/src/app/[locale]/(default)/news/(header)/layout.tsx index 3b11d0b..feebab9 100644 --- a/src/app/[locale]/(default)/news/(header)/layout.tsx +++ b/src/app/[locale]/(default)/news/(header)/layout.tsx @@ -1,4 +1,4 @@ -import { SquarePen } from 'lucide-react'; +import { SquarePenIcon } from 'lucide-react'; import { useTranslations } from 'next-intl'; import { unstable_setRequestLocale } from 'next-intl/server'; @@ -23,7 +23,7 @@ export default function NewsHeaderLayout({