Skip to content

Commit

Permalink
Feature : 회원가입 시 기본 이미지 설정 (#580)
Browse files Browse the repository at this point in the history
* feat : 프로필 기본 이미지 설정

* feat : 회원가입 step4 이미지 설정

* refactor : 중복된 import 제거
  • Loading branch information
guesung committed Jan 21, 2024
1 parent fd35bad commit 69e4b92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Binary file added public/images/road_character.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/app/[lng]/(sub)/join/components/JoinContext.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import type { StrictPropsWithChildren } from '@/types';
const defaultValues = {
phoneNumber: '',
verifyNumber: '',
imageUrl: '',
imageUrl:
'https://gloddy.s3.ap-northeast-2.amazonaws.com/file/5619c043-060b-4ce0-8797-d9bc2a94a18f.png',
schoolInfo: {
school: '',
email: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { formatBirthBackspace, formatBirthTyping } from '../util';
import { useGetNicknameDuplicate } from '@/apis/auth';
import CountryBotoomSheet from '@/app/[lng]/(main)/profile/setting/edit/components/step1/CountryBotoomSheet';
import { useTranslation } from '@/app/i18n/client';
import { Avatar } from '@/components/Avatar';
import { Button, ButtonGroup } from '@/components/Button';
import { Flex } from '@/components/Layout';
import { SegmentGroup } from '@/components/SegmentGroup';
Expand All @@ -16,6 +15,7 @@ import { useDidMount } from '@/hooks/common/useDidMount';
import { useFileUpload } from '@/hooks/useFileUpload';
import { useModal } from '@/hooks/useModal';
import sendMessageToReactNative from '@/utils/sendMessageToReactNative';
import Image from 'next/image';
import { type ElementType, type KeyboardEventHandler, useState } from 'react';

export default function InputForm() {
Expand Down Expand Up @@ -80,15 +80,16 @@ export default function InputForm() {

return (
<Flex as="form" direction="column" onSubmit={handleSubmit(onSubmit)}>
<Flex className="py-20" justify="center">
<Image src="/images/road_character.jpg" alt="메인 로고" height={400} width={400} />
{/* <Flex className="py-20" justify="center">
<Avatar
imageUrl={watch('imageUrl') || ''}
size="large"
iconVariant="add"
isPending={isPending}
onClick={handleFileUploadClick}
/>
</Flex>
</Flex>*/}
<Spacing size={8} />

<Flex direction="column" gap={16}>
Expand Down

0 comments on commit 69e4b92

Please sign in to comment.