The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

SideComponent change guild to guildId

Luna 25e0aea1 e7727a22

+5 -5
+4 -4
app/leaderboard/[guildId]/SideComponent.tsx
··· 6 6 import { webStore } from "@/common/webstore"; 7 7 import Badge from "@/components/badge"; 8 8 import { CopyToClipboardButton } from "@/components/copyToClipboard"; 9 - import { ApiV1GuildsGetResponse, ApiV1GuildsModulesLeaderboardGetResponse } from "@/typings"; 9 + import { ApiV1GuildsModulesLeaderboardGetResponse } from "@/typings"; 10 10 import { getCanonicalUrl } from "@/utils/urls"; 11 11 12 - const SideComponent: FunctionComponent<{ guild: ApiV1GuildsGetResponse, design: ApiV1GuildsModulesLeaderboardGetResponse }> = ({ guild, design }) => { 12 + const SideComponent: FunctionComponent<{ guildId: string, design: ApiV1GuildsModulesLeaderboardGetResponse }> = ({ guildId, design }) => { 13 13 const web = webStore((w) => w); 14 14 15 15 return ( ··· 17 17 18 18 <CopyToClipboardButton 19 19 className={design?.backgroundColor ? "dark:bg-wamellow/60 bg-wamellow-100/60 dark:hover:bg-wamellow-light/70 hover:bg-wamellow-100-light/70" : "dark:bg-wamellow bg-wamellow-100 dark:hover:bg-wamellow-light hover:bg-wamellow-100-light"} 20 - text={getCanonicalUrl("leaderboard", guild.id)} 20 + text={getCanonicalUrl("leaderboard", guildId)} 21 21 /> 22 22 23 23 <div className="dark:text-neutral-300 text-neutral-700 p-2 rounded-md"> ··· 36 36 </span> 37 37 <hr className="mt-2 mb-3 dark:border-wamellow-light border-wamellow-100-light" /> 38 38 39 - <Link href={getCanonicalUrl("dashboard", guild.id)} className={`flex ${design?.backgroundColor ? "dark:bg-wamellow/60 bg-wamellow-100/60 dark:hover:bg-wamellow-light/70 hover:bg-wamellow-100-light/70" : "dark:bg-wamellow bg-wamellow-100 dark:hover:bg-wamellow-light hover:bg-wamellow-100-light"} dark:hover:text-white py-2 px-4 rounded-md duration-200 w-full`}> 39 + <Link href={getCanonicalUrl("dashboard", guildId)} className={`flex ${design?.backgroundColor ? "dark:bg-wamellow/60 bg-wamellow-100/60 dark:hover:bg-wamellow-light/70 hover:bg-wamellow-100-light/70" : "dark:bg-wamellow bg-wamellow-100 dark:hover:bg-wamellow-light hover:bg-wamellow-100-light"} dark:hover:text-white py-2 px-4 rounded-md duration-200 w-full`}> 40 40 <HiViewGridAdd className="relative top-1" /> 41 41 <span className="ml-2">Dashboard</span> 42 42 </Link>
+1 -1
app/leaderboard/[guildId]/page.tsx
··· 184 184 </div> 185 185 186 186 <div className="md:w-1/4 mt-8 md:mt-0"> 187 - <SideComponent guild={guild} design={design} /> 187 + <SideComponent guildId={params.guildId} design={design} /> 188 188 </div> 189 189 190 190 </div>