Skip to content

Commit

Permalink
cleanup(YourGuilds): use the already existing hook
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Jul 12, 2024
1 parent c857299 commit e88068d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app/explorer/_components/YourGuilds.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
"use client"

import { useYourGuilds } from "@/hooks/useYourGuilds"
import useSWRWithOptionalAuth from "hooks/useSWRWithOptionalAuth"
import { GuildBase } from "types"
import {
GuildCardSkeleton,
GuildCardWithLink,
} from "../../../v2/components/GuildCard"

const useYourGuilds = () =>
useSWRWithOptionalAuth<GuildBase[]>(
`/v2/guilds?yours=true`,
undefined,
false,
true
)

export const YourGuilds = () => {
const { data: usersGuilds, isLoading: isGuildsLoading } = useYourGuilds()

Expand Down

0 comments on commit e88068d

Please sign in to comment.