Skip to content

Commit

Permalink
Revert "chore: try react-icons"
Browse files Browse the repository at this point in the history
This reverts commit 462767a.
  • Loading branch information
dominik-stumpf committed Jul 11, 2024
1 parent 711bd71 commit 5b57a6c
Show file tree
Hide file tree
Showing 11 changed files with 195 additions and 63 deletions.
7 changes: 7 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ const nextConfig = {
],
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
},
modularizeImports: {
'@phosphor-icons/react': {
transform: '@phosphor-icons/react/dist/ssr/{{member}}',
skipDefaultConversion: true,
preventFullImport: true,
},
},
experimental: {
scrollRestoration: true,
optimizePackageImports: [
Expand Down
167 changes: 142 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
"react-error-boundary": "^4.0.13",
"react-google-recaptcha": "^3.1.0",
"react-hook-form": "7.43.9",
"react-icons": "^5.2.1",
"react-live-chat-loader": "^2.9.1",
"react-markdown": "^8.0.7",
"react-papaparse": "^4.4.0",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/[guild]/events.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { HStack, Link, VStack, Wrap } from "@chakra-ui/react"
import { NoteBlank } from "@phosphor-icons/react"
import { EditGuildDrawerProvider } from "components/[guild]/EditGuild/EditGuildDrawerContext"
import EventCard from "components/[guild]/Events/EventCard"
import FallbackFrame from "components/[guild]/Events/FallbackFrame"
Expand All @@ -15,7 +16,6 @@ import BackButton from "components/common/Layout/components/BackButton"
import useGuildEvents, { GuildEvent } from "hooks/useGuildEvents"
import { GetStaticPaths, GetStaticProps } from "next"
import dynamic from "next/dynamic"
import { PiNoteBlank } from "react-icons/pi"
import { SWRConfig } from "swr"
import { Guild, SocialLinkKey } from "types"
import parseDescription from "utils/parseDescription"
Expand Down Expand Up @@ -96,7 +96,7 @@ const GuildEvents = (): JSX.Element => {
)}
{!isValidating && data?.length === 0 && (
<FallbackFrame
icon={PiNoteBlank}
icon={NoteBlank}
title="No upcoming events"
text="There aren't any upcoming events currently"
/>
Expand Down
Loading

0 comments on commit 5b57a6c

Please sign in to comment.