Skip to content

Commit

Permalink
Feat: FAQ non-member text
Browse files Browse the repository at this point in the history
  • Loading branch information
cuconveniencestore authored and hookor committed May 31, 2024
1 parent d9ddc3a commit 6518fcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/support/FAQ.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lazy } from 'react';
import { useQuery } from '@tanstack/react-query';
import SearchBar from '@/components/search/SearchBar';
import FoldableCard from '@/components/support/FoldableCard';
import { getSupportList } from '@/api/support';
import { useSearchInput } from '@/hooks/search/useSearchInput';
import { useCachedUserInfo } from '@/hooks/useCachedUserInfo';
Expand All @@ -11,6 +11,7 @@ import { styled } from 'styled-system/jsx';
import { Column } from '@/styles/layout';
import { Semibold } from '@/styles/styles';

const FoldableCard = lazy(() => import('@/components/support/FoldableCard'));
const { FAQ: text } = CUSTOMER_SUPPORT_TEXTS;
const { type } = SUPPORT_TEXTS.customerCenter.FAQ;

Expand All @@ -29,7 +30,7 @@ const FAQ = () => {
return (
<Continer className={Column}>
<Message className={Semibold}>
{userData.nickname}
{userData ? userData?.nickname : text.nonMember}
{text.message}
</Message>
<SearchBar
Expand Down
1 change: 1 addition & 0 deletions src/constants/support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const SUPPORT_TEXTS = {
export const CUSTOMER_SUPPORT_TEXTS = {
taps: ['공지사항', '자주 묻는 질문'],
FAQ: {
nonMember: '안녕하세요!',
message: `님,
무엇을 도와드릴까요?`,
placeholder: '질문 키워드를 입력해주세요.',
Expand Down

0 comments on commit 6518fcb

Please sign in to comment.