File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed
Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import { useSocket } from '@context/SocketProvider';
77import { OtherUserAtom } from '@recoil/util/OtherUser' ;
88import { getCurrentUserId } from '@utils/getCurrentUserId' ;
99
10+ import SendIcon from '@assets/default/send-message.svg' ;
11+
1012import { ChatBoxContainer , Textarea , SendButton } from './styles' ;
1113
1214const ChatBox : React . FC = ( ) => {
@@ -75,7 +77,9 @@ const ChatBox: React.FC = () => {
7577 onKeyDown = { handleEnterKeyDown }
7678 onSubmit = { handleNewMessageSubmit }
7779 />
78- < SendButton $isOtherUserValid = { isOtherUserValid } onClick = { handleNewMessageSubmit } />
80+ < SendButton $isOtherUserValid = { isOtherUserValid } onClick = { handleNewMessageSubmit } >
81+ < img src = { SendIcon } alt = "" />
82+ </ SendButton >
7983 </ ChatBoxContainer >
8084 ) ;
8185} ;
Original file line number Diff line number Diff line change 11import { styled } from 'styled-components' ;
22
3- import SendIcon from '@assets/default/send-message.svg' ;
4-
53export const ChatBoxContainer = styled . div `
64 ${ ( { theme } ) => theme . breakPoints } ;
75 position: fixed;
@@ -14,7 +12,7 @@ export const ChatBoxContainer = styled.div`
1412 padding: 0.5rem 1.12rem;
1513 background-color: ${ ( { theme } ) => theme . colors . background . primary } ;
1614 gap: 0.5rem;
17- border-top: 1px solid ${ ( { theme } ) => theme . colors . gray [ 300 ] } ;
15+ /* border-top: 1px solid ${ ( { theme } ) => theme . colors . gray [ 300 ] } ; */
1816 align-items: center;
1917` ;
2018
@@ -39,12 +37,9 @@ export const Textarea = styled.textarea<{ $isOtherUserValid: boolean }>`
3937` ;
4038
4139export const SendButton = styled . button < { $isOtherUserValid : boolean } > `
42- padding: 1.12rem;
40+ width: 2rem;
41+ height: 2rem;
4342 border-radius: 50%;
44- background-color: ${ ( { theme } ) => theme . colors . brand . primaryLight } ;
45- background-image: url(${ SendIcon } );
46- background-repeat: no-repeat;
47- background-position: center;
48- background-size: 1.2rem 1.2rem;
43+ /* background-color: ${ ( { theme } ) => theme . colors . brand . primaryLight } ; */
4944 cursor: ${ ( { $isOtherUserValid } ) => ( $isOtherUserValid ? 'pointer' : '' ) } ;
5045` ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export const FirstMessageLayout = styled.div<{ $isSenderChanged: boolean }>`
1010
1111export const MessageLayout = styled . div `
1212 display: flex;
13- margin: 0 auto 0.5rem 2.938rem ;
13+ margin: 0 auto 0.5rem 2rem ;
1414` ;
1515
1616export const UserImage = styled . img `
You can’t perform that action at this time.
0 commit comments