Skip to content

Commit

Permalink
bun run test
Browse files Browse the repository at this point in the history
  • Loading branch information
nasubi-dev committed Sep 28, 2024
1 parent fc74eb8 commit 2783a3b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
11 changes: 1 addition & 10 deletions src/components/member/RankingCard.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Avatar, Box, Flex, Text } from "@radix-ui/themes";
import { type ReactElement } from "react";
import { useLocation } from "react-router-dom";
import styled from "styled-components";
import { sendAnalytics } from "@/lib/utils/analytics";
import { Link } from "@/router";
import { type Member } from "@/types/member";

Expand Down Expand Up @@ -34,19 +32,12 @@ export function RankingCard({
index: number;
}): ReactElement {
const { name, email, icon } = member;
const url = useLocation().pathname;

if (email == null) throw new Error("email is null");

return (
<BoxStyle>
<Link
onClick={() => {
sendAnalytics("memberDetail", url);
}}
params={{ id: email }}
to="/members/:id"
>
<Link onClick={() => {}} params={{ id: email }} to="/members/:id">
<Flex align="center" gap="6" ml="6rem">
<Text mr="2rem" size="8" weight="bold">
{index + 1}
Expand Down
1 change: 0 additions & 1 deletion src/lib/utils/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ export const usePageTracking = (): void => {
});
}, [location]);
};

1 change: 0 additions & 1 deletion src/pages/unlocked/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Box } from "@radix-ui/themes";
import { useState, type ReactElement } from "react";
import ReactGA from "react-ga4";
import { useLocation } from "react-router-dom";
import styled from "styled-components";
import useSWRImmutable from "swr/immutable";
import { match } from "ts-pattern";
Expand Down

0 comments on commit 2783a3b

Please sign in to comment.