Skip to content

Commit

Permalink
Revert "[#476] [모임 상세] 비로그인 시 모임 참여하기 버튼 비활성화 (#479)"
Browse files Browse the repository at this point in the history
This reverts commit a2e628d.
  • Loading branch information
gxxrxn authored Aug 20, 2024
1 parent 0acde34 commit 1d517db
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
16 changes: 1 addition & 15 deletions src/app/group/[groupId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
'use client';

import Link from 'next/link';
import SSRSafeSuspense from '@/components/SSRSafeSuspense';
import BookGroupInfo from '@/v1/bookGroup/detail/BookGroupInfo';
import CommentList from '@/v1/bookGroup/detail/CommentList';
import BookGroupNavigation from '@/v1/bookGroup/BookGroupNavigation';
import JoinBookGroupButton from '@/v1/bookGroup/detail/JoinBookGroupButton';
import BottomActionButton from '@/v1/base/BottomActionButton';
import { isAuthed } from '@/utils/helpers';
import { KAKAO_LOGIN_URL } from '@/constants/url';

const DetailBookGroupPage = ({
params: { groupId },
Expand All @@ -33,11 +29,7 @@ const DetailBookGroupPage = ({
<CommentList groupId={groupId} />
</div>
</div>
{isAuthed() ? (
<JoinBookGroupButton groupId={groupId} />
) : (
<LoginBottomActionButton />
)}
<JoinBookGroupButton groupId={groupId} />
</SSRSafeSuspense>
</>
);
Expand All @@ -62,9 +54,3 @@ const PageSkeleton = () => (
);

const Divider = () => <p className="w-app h-[0.5rem] bg-background"></p>;

const LoginBottomActionButton = () => (
<Link href={KAKAO_LOGIN_URL}>
<BottomActionButton>로그인 및 회원가입</BottomActionButton>
</Link>
);
2 changes: 0 additions & 2 deletions src/constants/url.ts → src/constants/dataUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ export const DATA_URL = {
placeholder:
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdjWL9+/X8ABysDDapsaG4AAAAASUVORK5CYII=', // data url for placeholder color (#AFAFAF)
};

export const KAKAO_LOGIN_URL = `${process.env.NEXT_PUBLIC_API_URL}/oauth2/authorize/kakao?redirect_uri=${process.env.NEXT_PUBLIC_CLIENT_REDIRECT_URI}`;
2 changes: 1 addition & 1 deletion src/v1/book/BookCover.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ComponentPropsWithoutRef } from 'react';
import Image from 'next/image';

import { DATA_URL } from '@/constants/url';
import { DATA_URL } from '@/constants/dataUrl';

type BookCoverSize =
| 'xsmall'
Expand Down

0 comments on commit 1d517db

Please sign in to comment.