Skip to content

Commit

Permalink
Merge pull request #89 from Mogazoa-team20/feat/myPage
Browse files Browse the repository at this point in the history
[#35] 유저페이지 접속 시 모든요청이 마이페이지로 가는 에러 수정
  • Loading branch information
yeeZinu authored Jun 20, 2024
2 parents 6ea442e + b31cdd5 commit 910bdc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ import TabButton from "../TabButton/TabButton";
// eslint-disable-next-line no-restricted-imports
import UserProductList from "../UserProductList/UserProductList";

export default function UserActivityList() {
type UserActivityListProps = {
userId: number;
};

export default function UserActivityList({ userId }: UserActivityListProps) {
const router = useRouter();
const [selectedButton, setSelectedButton] = useState<string>("reviewed");
const { data: session } = useSession();
Expand All @@ -30,7 +34,6 @@ export default function UserActivityList() {
});

const httpClient = new HttpClient(process.env.NEXT_PUBLIC_BASE_URL!);
const userId = session?.user.id;
const ACCESS_TOKEN = session?.accessToken ?? "";

const querySelectButton = (value: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(userpage)/user/[userId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function UserPage({ params }: { params: { userId: number } }) {
/>
</div>
</section>
<UserActivityList />
<UserActivityList userId={params.userId} />
</div>
</>
)}
Expand Down

0 comments on commit 910bdc0

Please sign in to comment.