Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/letter receive #9

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Conversation

MrMirror21
Copy link

No description provided.

@MrMirror21 MrMirror21 added the enhancement New feature or request label Feb 10, 2021
@MrMirror21 MrMirror21 linked an issue Feb 10, 2021 that may be closed by this pull request
@yjb94 yjb94 requested review from yjb94 and a team February 10, 2021 13:23
.eslintrc.js Outdated
Comment on lines 32 to 40
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
},
}; No newline at end of file
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

뭔지 잘 모르겠음. prettierrc에서 되면 수정 부탁감사

Comment on lines +12 to +16
const Wrapper = styled.div``;

const Writer = styled.div``;

const Content = styled.div``;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아래로 내려주세여

Comment on lines +13 to +17
const Wrapper = styled.div``;

const Writer = styled.div``;

const Thumbnail = styled.div``;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

얘도 아래로우

Comment on lines +23 to +25
<Text>
<Writer>{writer}</Writer>
</Text>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Text>
<Writer>{writer}</Writer>
</Text>
<Writer>{writer}</Writer>

Writer를 styled 컴포넌트로 Text 감싸게 하면 될 둣

Comment on lines +6 to +10
export interface LetterProps extends Omit<LetterDataType, 'id'> {
content: string;
thumbnail: string;
writer: string;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export interface LetterProps extends Omit<LetterDataType, 'id'> {
content: string;
thumbnail: string;
writer: string;
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface LetterProps extends Omit<LetterDataType, 'id' | 'thumbnail'> {}

Comment on lines +7 to +11
export interface LetterProps extends Omit<LetterDataType, 'content'> {
id: string;
thumbnail: string;
writer: string;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export interface LetterProps extends Omit<LetterDataType, 'content'> {
id: string;
thumbnail: string;
writer: string;
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface LetterProps extends Omit<LetterDataType, 'content'> {}

Comment on lines +10 to +15
export const emptyLetter: LetterDataType = {
id: '',
content: '',
writer: '',
thumbnail: '',
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 필요없을 듯

Comment on lines +10 to +15

const LetterReadPage: React.FC = () => {
const history = useHistory();
const letterId = history.location.pathname.substring(13);
const letterToRead: LetterDataType =
letters.find((letter) => letter.id === letterId) || emptyLetter;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emptyLetter를 안쓰는 좋은 방법을 추천드립니다!

Comment on lines +7 to +9
const Wrapper = styled.div``;

const ExitButton = styled.button``;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아래로오 호우!

import styled from 'styled-components';
import LetterThumbnail from '../components/Letter/LetterThumbnail';
import { letters } from '../constants/Letters';
const Wrapper = styled.div``;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아래로 메우!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

편지 읽기
2 participants