From 1a2200e2e7a6b5b281fb35334558a600fb392dec Mon Sep 17 00:00:00 2001 From: useonglee Date: Mon, 21 Jun 2021 23:36:20 +0900 Subject: [PATCH 1/2] Fix #433 chat profile modal css error after button hover --- .../Chat/ChatProfileModal/styles.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/components/Chat/ChatProfileModal/styles.ts b/src/components/Chat/ChatProfileModal/styles.ts index b4e13c1..db610de 100644 --- a/src/components/Chat/ChatProfileModal/styles.ts +++ b/src/components/Chat/ChatProfileModal/styles.ts @@ -61,23 +61,6 @@ export const GoToProfileLink = styled(Link)` transition: 0.1s; color: #eee; background-color: ${({ theme }) => theme.color.pointColor}; - border: none; - } -`; - -export const ProfileModalLink = styled(Link)` - width: 95px; - padding: 8px; - color: #333333; - text-align: center; - background-color: #fff; - border: 1px solid ${({ theme }) => theme.color.lineColor}; - border-radius: 4px; - - &:hover { - transition: 0.1s; - color: #eee; - background-color: ${({ theme }) => theme.color.pointColor}; - border: none; + border: 1px solid transparent; } `; From 3502abf83f5e8bdb2e41b4bcc6e6192ed5266cbe Mon Sep 17 00:00:00 2001 From: useonglee Date: Mon, 21 Jun 2021 23:40:32 +0900 Subject: [PATCH 2/2] Fix #434 change date in chat delete message --- src/components/Chat/DeleteAlert/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Chat/DeleteAlert/index.tsx b/src/components/Chat/DeleteAlert/index.tsx index 5df9547..2ecd0a5 100644 --- a/src/components/Chat/DeleteAlert/index.tsx +++ b/src/components/Chat/DeleteAlert/index.tsx @@ -25,8 +25,6 @@ interface Props { const DeleteAlert = ({ data, setShowChatDeleteAlert, onChatDeleteButton }: Props): JSX.Element => { const { uploadImage, profileColor, name } = data.writer; - let date = dayjs(data.createdAt); - date = date.add(9, 'hour'); return ( <> @@ -47,7 +45,7 @@ const DeleteAlert = ({ data, setShowChatDeleteAlert, onChatDeleteButton }: Props
{name} - {dayjs(date).format('A h:mm')} + {dayjs(data.createdAt).format('A h:mm')}
{data.uploadImage ? <>{data.uploadImage.toString()} : <>{data.text}}