-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] 마지막 피드일 때 서버 오류 수정, 마지막 피드 일 때 나타나는 컴포넌트 수정 #32
마지막 피드일 때 없는 프로퍼티에 접근해서 생기는 오류 수정 마지막 피드일때 안내 컴포넌트 추가
- Loading branch information
1 parent
ec7b73f
commit 9d9457f
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { useEffect } from 'react'; | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
interface Props { | ||
onClick: (event: React.MouseEvent<HTMLElement>) => void; | ||
onEffect: () => void | (() => void); | ||
data: string; | ||
} | ||
const NoFeedGuide = styled.div` | ||
border: 1px solid #dadde1; | ||
display: inline-block; | ||
cursor: pointer; | ||
width: 510px; | ||
text-align: center; | ||
padding: 0.5rem 0.75rem; | ||
border-radius: 2rem; | ||
font-size: 14px; | ||
background: white; | ||
box-shadow: 0.5px 0.5px 2p x 0px #dadde1; | ||
`; | ||
|
||
const NoFeed = () => { | ||
return ( | ||
<NoFeedGuide>마지막 피드입니다. 새로운 친구를 만들어보세요~</NoFeedGuide> | ||
); | ||
}; | ||
|
||
export default NoFeed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters