diff --git a/src/Redux/proxy.js b/src/Redux/proxy.js index e4dd2a1..c3ab403 100644 --- a/src/Redux/proxy.js +++ b/src/Redux/proxy.js @@ -1,6 +1,6 @@ import axios from 'axios'; import { toast } from 'react-toastify'; -const baseURL = 'https://chatstory.ir/api/v1'; //"https://chatstory.ir/api/v1"; +const baseURL = 'https://chatstory.ir/api/v1'; //'https://chatstory.ir/api/v1'; const token = ''; const loginURL = 'user/otp/login'; const logoutURL = 'user/logout'; diff --git a/src/assets/images/chat.png b/src/assets/images/chat.png index 38a7de4..f2711a5 100644 Binary files a/src/assets/images/chat.png and b/src/assets/images/chat.png differ diff --git a/src/assets/images/chat2.png b/src/assets/images/chat2.png new file mode 100644 index 0000000..38a7de4 Binary files /dev/null and b/src/assets/images/chat2.png differ diff --git a/src/views/ChatRoom/Body/Body.js b/src/views/ChatRoom/Body/Body.js index 4e8fabb..b555d94 100644 --- a/src/views/ChatRoom/Body/Body.js +++ b/src/views/ChatRoom/Body/Body.js @@ -24,12 +24,9 @@ class Body extends Component { video: null, music: null, document: null, - footer: 'suggest', + footer: 'normal', suggest: [ - [ - { id: 0, text: 'سلام' }, - { id: 0, text: 'سلام' }, - ], + [{ id: 0, text: 'سلام' }], [{ id: 1, text: 'وقت بخیر' }], [{ id: 2, text: 'لطفا بامن تماس بگیر' }], [{ id: 3, text: 'متشکرم' }], @@ -366,7 +363,7 @@ class Body extends Component { style={{ overflowX: 'hidden', overflowY: this.state.file !== null ? 'hidden' : 'scroll', - paddingBottom: this.state.footer === 'suggest' ? 110 : 70, + paddingBottom: this.state.footer === 'suggest' ? 150 : 70, }} > {chatInfo.users && @@ -375,7 +372,7 @@ class Body extends Component { this.state.music === null && this.state.video === null ? ( { - this.setState(({ items }) => ({ - items: arrayMove(items, oldIndex, newIndex), + this.setState(({ options }) => ({ + options: arrayMove(options, oldIndex, newIndex), })); }; render() { const { message, user, isSelf } = this.props; + return (
- - {user.name - .split(' ') - .map((e) => e.slice(0, 1)) - .join(' ')} - - - {/* {message.id} */} -
- {message.text !== null ? ( -

- {message.text} -

- ) : null} -
- +