Skip to content

Commit

Permalink
chore: try revert commit 93a04ae
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 12, 2024
1 parent fb8d0e1 commit 491caf5
Show file tree
Hide file tree
Showing 322 changed files with 424 additions and 422 deletions.
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const nextConfig = {
},
experimental: {
scrollRestoration: true,
optimizePackageImports: ["@phosphor-icons/react"],
},
async rewrites() {
return {
Expand Down
25 changes: 12 additions & 13 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"@lexical/selection": "^0.12.0",
"@lexical/utils": "^0.12.0",
"@nouns/assets": "^0.4.2",
"@phosphor-icons/react": "^2.1.7",
"@snyk/protect": "latest",
"@t3-oss/env-nextjs": "^0.10.1",
"@tanstack/react-query": "^5.26.3",
Expand All @@ -69,6 +68,7 @@
"mini-svg-data-uri": "^1.4.4",
"next": "14.0.1",
"papaparse": "^5.4.1",
"phosphor-react": "^1.4.1",
"posthog-js": "^1.139.3",
"qrcode.react": "^3.1.0",
"randombytes": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/[guild]/AccessHub/AccessHub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {
SimpleGrid,
Stack,
} from "@chakra-ui/react"
import { StarHalf } from "@phosphor-icons/react"
import Card from "components/common/Card"
import ClientOnly from "components/common/ClientOnly"
import useMembership from "components/explorer/hooks/useMembership"
import dynamic from "next/dynamic"
import { StarHalf } from "phosphor-react"
import PointsRewardCard from "rewards/Points/PointsRewardCard"
import { TokenRewardCard } from "rewards/Token/TokenRewardCard"
import { PlatformType } from "types"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
Text,
useColorModeValue,
} from "@chakra-ui/react"
import { ArrowRight, Plus } from "@phosphor-icons/react"
import useGuild from "components/[guild]/hooks/useGuild"
import useGuildPermission from "components/[guild]/hooks/useGuildPermission"
import Button from "components/common/Button"
Expand All @@ -16,6 +15,7 @@ import dynamic from "next/dynamic"
import Image from "next/image"
import Link from "next/link"
import { useRouter } from "next/router"
import { ArrowRight, Plus } from "phosphor-react"

const DynamicCampaignCardMenu = dynamic(
() => import("./components/CampaignCardMenu")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import {
useColorModeValue,
useDisclosure,
} from "@chakra-ui/react"
import { PencilSimple, TrashSimple } from "@phosphor-icons/react"
import PlatformCardMenu from "components/[guild]/RolePlatforms/components/PlatformCard/components/PlatformCardMenu"
import Button from "components/common/Button"
import { Alert } from "components/common/Modal"
import { PencilSimple, TrashSimple } from "phosphor-react"
import { useRef } from "react"
import useDeleteRoleGroup from "../hooks/useDeleteRoleGroup"
import EditCampaignModal from "./EditCampaignModal"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { MenuItem, useDisclosure } from "@chakra-ui/react"
import { Clock } from "@phosphor-icons/react"
import EditRewardAvailabilityModal from "components/[guild]/RolePlatforms/components/EditRewardAvailabilityModal"
import useGuild from "components/[guild]/hooks/useGuild"
import useToast from "hooks/useToast"
import { Clock } from "phosphor-react"
import { PlatformName, PlatformType } from "types"
import useEditRolePlatform from "../hooks/useEditRolePlatform"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Icon, Tooltip, useColorModeValue } from "@chakra-ui/react"
import { CircleWavyCheck, Question } from "@phosphor-icons/react"
import { useMintGuildPinContext } from "components/[guild]/Requirements/components/GuildCheckout/MintGuildPinContext"
import useGuild from "components/[guild]/hooks/useGuild"
import useGuildPermission from "components/[guild]/hooks/useGuildPermission"
import RewardCard from "components/common/RewardCard"
import dynamic from "next/dynamic"
import { CircleWavyCheck, Question } from "phosphor-react"

const DynamicMintGuildPin = dynamic(
() =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon } from "@chakra-ui/react"
import { ArrowSquareOut } from "@phosphor-icons/react"
import Button from "components/common/Button"
import { ArrowSquareOut } from "phosphor-react"
import rewards from "rewards"
import { GuildPlatform, PlatformType } from "types"
import usePlatformAccessButton from "./usePlatformAccessButton"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { MenuItem, useColorModeValue, useDisclosure } from "@chakra-ui/react"
import { TrashSimple } from "@phosphor-icons/react"
import useRemoveGuildPlatform from "components/[guild]/AccessHub/hooks/useRemoveGuildPlatform"
import { AlreadyGrantedAccessesWillRemainInfo } from "components/[guild]/RolePlatforms/components/RemovePlatformButton/RemovePlatformButton"
import useGuild from "components/[guild]/hooks/useGuild"
import ConfirmationAlert from "components/create-guild/Requirements/components/ConfirmationAlert"
import { TrashSimple } from "phosphor-react"
import rewards from "rewards"
import { PlatformType } from "types"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {
MenuList,
useDisclosure,
} from "@chakra-ui/react"
import { CaretDown, ListNumbers, Plus } from "@phosphor-icons/react"
import Button from "components/common/Button"
import useIsStuck from "hooks/useIsStuck"
import { CaretDown, ListNumbers, Plus } from "phosphor-react"
import { useEffect, useRef } from "react"
import RecheckAccessesButton from "../RecheckAccessesButton"
import AddRoleDrawer from "./components/AddRoleDrawer"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HStack, Heading, Icon, Spacer } from "@chakra-ui/react"
import { DotsSixVertical } from "@phosphor-icons/react"
import MemberCount from "components/[guild]/RoleCard/components/MemberCount"
import Visibility from "components/[guild]/Visibility"
import Card from "components/common/Card"
import GuildLogo from "components/common/GuildLogo"
import { DotsSixVertical } from "phosphor-react"
import { Role } from "types"

type Props = {
Expand Down
4 changes: 2 additions & 2 deletions src/components/[guild]/AddRewardAndCampaign.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import {
Text,
useDisclosure,
} from "@chakra-ui/react"
import { CaretDown, Plus } from "@phosphor-icons/react"
import CreateCampaignModal from "components/[guild]/CreateCampaignModal"
import AddSolutionsButton from "solutions/components/AddSolutionsButton"
import { CaretDown, Plus } from "phosphor-react"
import AddRewardButton from "./AddRewardButton"
import { useIsTabsStuck } from "./Tabs"
import { useThemeContext } from "./ThemeContext"

Expand Down
6 changes: 3 additions & 3 deletions src/components/[guild]/AddRewardButton/AddRewardButton.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ModalOverlay, useDisclosure } from "@chakra-ui/react"
import { Schemas, Visibility } from "@guildxyz/types"
import { Plus } from "@phosphor-icons/react"
import Button from "components/common/Button"
import DiscardAlert from "components/common/DiscardAlert"
import { Modal } from "components/common/Modal"
import useShowErrorToast from "hooks/useShowErrorToast"
import { atom, useAtomValue } from "jotai"
import { Plus } from "phosphor-react"
import { FormProvider, useForm, useWatch } from "react-hook-form"
import { modalSizeForPlatform } from "rewards"
import rewardComponents from "rewards/components"
import rewards, { modalSizeForPlatform } from "rewards"
import { RewardData } from "rewards/types"
import { RoleFormType } from "types"
import { AddRewardProvider, useAddRewardContext } from "../AddRewardContext"
import { ClientStateRequirementHandlerProvider } from "../RequirementHandlerContext"
Expand Down
4 changes: 1 addition & 3 deletions src/components/[guild]/AddRewardButton/SelectRolePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ import {
useColorModeValue,
} from "@chakra-ui/react"
import { Visibility } from "@guildxyz/types"
import { ArrowLeft, Info } from "@phosphor-icons/react"
import { usePostHogContext } from "components/_app/PostHogProvider"
import Button from "components/common/Button"
import useJsConfetti from "components/create-guild/hooks/useJsConfetti"
import useCreateRRR, { SubmitData } from "hooks/useCreateRRR"
import useToast from "hooks/useToast"
import { ArrowLeft, Info } from "phosphor-react"
import { useState } from "react"
import { useFormContext, useWatch } from "react-hook-form"
import rewards, { CAPACITY_TIME_PLATFORMS } from "rewards"
import rewardComponents from "rewards/components"
import SelectRoleOrSetRequirements from "rewards/components/SelectRoleOrSetRequirements"
import { RoleTypeToAddTo, useAddRewardContext } from "../AddRewardContext"
import useGuild from "../hooks/useGuild"
Expand Down
2 changes: 1 addition & 1 deletion src/components/[guild]/CollapsibleRoleSection.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Box, Button, Collapse, Icon, Stack, useDisclosure } from "@chakra-ui/react"

import { CaretDown } from "@phosphor-icons/react"
import { CaretDown } from "phosphor-react"
import capitalize from "utils/capitalize"

const CollapsibleRoleSection = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {
ModalHeader,
ModalOverlay,
} from "@chakra-ui/react"
import { ArrowRight } from "@phosphor-icons/react"
import Button from "components/common/Button"
import { Modal } from "components/common/Modal"
import usePinata from "hooks/usePinata"
import useSubmitWithUpload from "hooks/useSubmitWithUpload"
import { ArrowRight } from "phosphor-react"
import { FormProvider, useForm } from "react-hook-form"
import CampaignForm, { CampaignFormType } from "./components/CampaignForm"
import useCreateRoleGroup from "./hooks/useCreateRoleGroup"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import {
Tooltip,
} from "@chakra-ui/react"
import { Schemas } from "@guildxyz/types"
import { DotsSixVertical, PencilSimple, Trash } from "@phosphor-icons/react"
import { CreateForm } from "components/[guild]/RolePlatforms/components/AddRoleRewardModal/components/AddFormPanel"
import Button from "components/common/Button"
import Card from "components/common/Card"
import CardMotionWrapper from "components/common/CardMotionWrapper"
import ControlledSelect from "components/common/ControlledSelect"
import FormErrorMessage from "components/common/FormErrorMessage"
import { Reorder, useDragControls } from "framer-motion"
import { DotsSixVertical, PencilSimple, Trash } from "phosphor-react"
import { useState } from "react"
import { useController, useFormContext, useWatch } from "react-hook-form"
import { SelectOption } from "types"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
Icon,
useColorModeValue,
} from "@chakra-ui/react"
import { DotsSixVertical } from "@phosphor-icons/react"
import { Reorder, useDragControls } from "framer-motion"
import { DotsSixVertical } from "phosphor-react"
import { PropsWithChildren, ReactNode } from "react"
import { Rest } from "types"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IconButton, IconButtonProps } from "@chakra-ui/react"
import { X } from "@phosphor-icons/react"
import { X } from "phosphor-react"

const RemoveButton = (
props: Omit<
Expand Down
4 changes: 2 additions & 2 deletions src/components/[guild]/CreateFormModal/formConfig.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Schemas } from "@guildxyz/types"
import OptionIcon from "components/common/StyledSelect/components/CustomSelectOption/components/OptionIcon"
import {
CheckSquare,
NumberCircleFive,
NumberSquareFive,
RadioButton,
Textbox,
} from "@phosphor-icons/react"
import OptionIcon from "components/common/StyledSelect/components/CustomSelectOption/components/OptionIcon"
} from "phosphor-react"
import { ComponentType, ReactNode } from "react"
import {
ExpectedFieldDataProps,
Expand Down
2 changes: 1 addition & 1 deletion src/components/[guild]/DeleteButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ButtonProps, Icon, IconButton, Tooltip } from "@chakra-ui/react"
import { Trash } from "@phosphor-icons/react"
import { Trash } from "phosphor-react"
import { PropsWithChildren } from "react"

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/[guild]/DiscordBotPermissionsChecker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import {
UnorderedList,
useDisclosure,
} from "@chakra-ui/react"
import { ArrowSquareOut, Info } from "@phosphor-icons/react"
import Button from "components/common/Button"
import DiscordRoleVideo from "components/common/DiscordRoleVideo"
import { Modal } from "components/common/Modal"
import { env } from "env"
import { ActionToastOptions, useToastWithButton } from "hooks/useToast"
import { ArrowSquareOut, Info } from "phosphor-react"
import { useMemo, useRef, useState } from "react"
import useSWRImmutable from "swr/immutable"
import { PlatformType } from "types"
Expand Down
2 changes: 1 addition & 1 deletion src/components/[guild]/EditGuild/EditGuildButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IconButton } from "@chakra-ui/react"
import { GearSix } from "@phosphor-icons/react"
import { GearSix } from "phosphor-react"
import { useThemeContext } from "../ThemeContext"
import { useEditGuildDrawer } from "./EditGuildDrawerContext"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { HStack, Icon, forwardRef } from "@chakra-ui/react"
import { Warning } from "@phosphor-icons/react"
import {
CreatableSelect,
GroupBase,
Expand All @@ -10,6 +9,7 @@ import {
import CopyableAddress from "components/common/CopyableAddress"
import StyledSelect from "components/common/StyledSelect"
import CustomMenuList from "components/common/StyledSelect/components/CustomMenuList"
import { Warning } from "phosphor-react"
import { PropsWithChildren, useEffect } from "react"
import { useFormContext, useWatch } from "react-hook-form"
import { useEnsAddress } from "wagmi"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { FormControl, FormLabel, Progress, Wrap } from "@chakra-ui/react"
import { File } from "@phosphor-icons/react"
import { useThemeContext } from "components/[guild]/ThemeContext"
import Button from "components/common/Button"
import FormErrorMessage from "components/common/FormErrorMessage"
import useDropzone, { ERROR_MESSAGES } from "hooks/useDropzone"
import { Uploader } from "hooks/usePinata/usePinata"
import { File } from "phosphor-react"
import { useState } from "react"
import RemoveBackgroundImage from "./RemoveBackgroundImage"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, Img, SimpleGrid, Text } from "@chakra-ui/react"
import { Plus } from "@phosphor-icons/react"
import StyledSelect from "components/common/StyledSelect"
import { Plus } from "phosphor-react"
import { useFormContext, useWatch } from "react-hook-form"
import { EventSourcesKey, SelectOption } from "types"
import EventInput, { eventSourceNames, logos } from "./EventInput"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Icon } from "@chakra-ui/react"
import { X } from "@phosphor-icons/react"
import { useThemeContext } from "components/[guild]/ThemeContext"
import Button from "components/common/Button"
import { X } from "phosphor-react"
import { useFormContext } from "react-hook-form"

const RemoveBackgroundImage = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import {
SimpleGrid,
} from "@chakra-ui/react"
import { SocialLinks as SocialLinksType } from "@guildxyz/types"
import { Plus } from "@phosphor-icons/react"
import SocialIcon from "components/[guild]/SocialIcon"
import FormErrorMessage from "components/common/FormErrorMessage"
import StyledSelect from "components/common/StyledSelect"
import { Plus } from "phosphor-react"
import { useFormContext, useWatch } from "react-hook-form"
import { SelectOption, SocialLinkKey, supportedSocialLinks } from "types"
import capitalize from "utils/capitalize"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HStack, StackProps, Tag, TagLabel, TagLeftIcon } from "@chakra-ui/react"
import { Clock, Users } from "@phosphor-icons/react"
import { Clock, Users } from "phosphor-react"

type Props = {
startDate: number
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ButtonProps } from "@chakra-ui/react"
import { ArrowSquareOut } from "@phosphor-icons/react"
import { usePostHogContext } from "components/_app/PostHogProvider"
import Button from "components/common/Button"
import useColorPalette from "hooks/useColorPalette"
import { ArrowSquareOut } from "phosphor-react"
import { EventSourcesKey } from "types"

type Props = {
Expand Down
Loading

0 comments on commit 491caf5

Please sign in to comment.