Skip to content
Merged
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.
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