Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion src/components/layout/header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use client';
import Link from 'next/link';
import { useRouter } from 'next/navigation';

import { Icon } from '@/components/icon';
import { cn } from '@/lib/utils';
Expand All @@ -8,11 +9,17 @@ import { useAuth, useNotification } from '@/providers';
export const Header = () => {
const { isAuthenticated } = useAuth();
const { unReadCount, receivedNewNotification } = useNotification();
const router = useRouter();

const onLogoClick = (e: React.MouseEvent<HTMLAnchorElement>) => {
e.preventDefault();
router.push('/');
};

return (
<header className={`sticky top-0 z-100 w-full bg-white`}>
<nav className='flex-between px-4 py-2'>
<Link href={'/'}>
<Link href={'/'} onClick={onLogoClick}>
<Icon id='wego-logo' width={92} height={40} />
</Link>
<div className='flex-center gap-2'>
Expand Down
1 change: 1 addition & 0 deletions src/components/pages/group-list/group-search-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const GroupSearchBar = () => {
return (
<div className='sticky top-14 z-100 bg-white px-5 pb-3'>
<SearchBar
key={currentKeyword || 'empty'}
className='h-11'
defaultValue={currentKeyword}
placeholder='원하는 모임을 검색해보세요'
Expand Down
5 changes: 5 additions & 0 deletions src/components/pages/pending/pending-members/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';

import { API } from '@/api';
import { EmptyState } from '@/components/layout/empty-state';
import { Toast } from '@/components/ui';
import { useToast } from '@/components/ui/toast/core';
import { groupKeys } from '@/lib/query-key/query-key-group';
import { GetJoinRequestsResponse } from '@/types/service/group';

Expand All @@ -20,6 +22,7 @@ interface Props {
export const GroupPendingMembers = ({ groupId }: Props) => {
const router = useRouter();
const queryClient = useQueryClient();
const { run } = useToast();

const { data, isLoading, error } = useQuery<GetJoinRequestsResponse>({
queryKey: groupKeys.joinRequests(groupId, 'PENDING'),
Expand Down Expand Up @@ -47,6 +50,7 @@ export const GroupPendingMembers = ({ groupId }: Props) => {
});
// 모임 상세 정보도 갱신
await queryClient.invalidateQueries({ queryKey: groupKeys.detail(groupId) });
run(<Toast type='success'>모임 신청이 수락되었습니다.</Toast>);
},
});

Expand All @@ -60,6 +64,7 @@ export const GroupPendingMembers = ({ groupId }: Props) => {
queryKey: groupKeys.joinRequests(groupId, 'PENDING'),
refetchType: 'active', // 활성화된 모든 쿼리 자동 refetch
});
run(<Toast>모임 신청이 거절되었습니다.</Toast>);
},
});

Expand Down
10 changes: 5 additions & 5 deletions src/lib/metadata/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const generateHomeMetadata = async (keyword?: string): Promise<Metadata>
const currentUrl = keyword
? `${protocol}://${host}/?keyword=${encodeURIComponent(keyword)}`
: `${protocol}://${host}/`;
const logoImageUrl = `${protocol}://${host}/icons/resizable/icon-wego-logo.svg`;
const logoImageUrl = `${protocol}://${host}/images/logo.png`;

try {
if (keyword) {
Expand Down Expand Up @@ -87,8 +87,8 @@ export const generateHomeMetadata = async (keyword?: string): Promise<Metadata>
images: [
{
url: logoImageUrl,
width: 400,
height: 400,
width: 200,
height: 200,
alt: 'WeGo 로고',
},
],
Expand Down Expand Up @@ -120,8 +120,8 @@ export const generateHomeMetadata = async (keyword?: string): Promise<Metadata>
images: [
{
url: logoImageUrl,
width: 400,
height: 400,
width: 200,
height: 200,
alt: 'WeGo 로고',
},
],
Expand Down