Skip to content

Commit 4e19292

Browse files
committed
Fixes velopert#29
email of setting page was hardcoded with my email.
1 parent a9c5630 commit 4e19292

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/setting/SettingRows.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import media from '../../lib/styles/media';
1212
export type SettingRowsProps = {
1313
title: string | null;
1414
username: string;
15+
email: string;
1516
onUpdateTitle: (title: string) => Promise<any>;
1617
onUpdateSocialInfo: (profileLinks: ProfileLinks) => Promise<any>;
1718
onUpdateEmailRules: (params: {
@@ -38,6 +39,7 @@ function SettingRows({
3839
username,
3940
profileLinks,
4041
userMeta,
42+
email,
4143
onUpdateTitle,
4244
onUpdateSocialInfo,
4345
onUpdateEmailRules,
@@ -54,7 +56,7 @@ function SettingRows({
5456
title="이메일 주소"
5557
description="회원 인증 또는 시스템에서 발송하는 이메일을 수신하는 주소입니다."
5658
>
57-
59+
{email}
5860
</SettingRow>
5961
{userMeta && (
6062
<SettingEmailRulesRow

src/containers/setting/SettingRowsContainer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function SettingRowsContainer(props: SettingRowsContainerProps) {
4040
<SettingRows
4141
title={velogConfig.title}
4242
username={user.username}
43+
email={user.email}
4344
onUpdateTitle={updateTitle}
4445
profileLinks={profile.profile_links}
4546
onUpdateSocialInfo={updateSocialInfo.update}

0 commit comments

Comments
 (0)