diff --git a/src/components/common/DiaryInfo.js b/src/components/common/DiaryInfo.js index 477d4ba..d7e6c9d 100644 --- a/src/components/common/DiaryInfo.js +++ b/src/components/common/DiaryInfo.js @@ -3,16 +3,17 @@ import styled from "styled-components"; import { COLOR } from "../../styles/color"; import PropTypes from "prop-types"; import moment from "moment"; +import defaultImageSrc from "../../assets/images/defaultProfileImg.svg"; const DiaryInfo = ({ title, date, username, userimg }) => { return ( {title} - + {username} - {moment(date, "YY-MM-DD").format("YYYY.MM.DD")} + {moment(date).format("YYYY.MM.DD")} ); };