diff --git a/src/assets/images/chat.png b/src/assets/images/chat.png index f2711a5..5a09360 100644 Binary files a/src/assets/images/chat.png and b/src/assets/images/chat.png differ diff --git a/src/assets/images/chat3.png b/src/assets/images/chat3.png new file mode 100644 index 0000000..f2711a5 Binary files /dev/null and b/src/assets/images/chat3.png differ diff --git a/src/index.scss b/src/index.scss index 82fe352..52b5b2a 100644 --- a/src/index.scss +++ b/src/index.scss @@ -31,6 +31,15 @@ code { font-family: IRANSansNumeralBold; src: url(assets/IRANSans/Farsi_numerals/Bold.ttf); } +.fontLight { + font-family: 'IRANSansNumeralLight' !important; +} +.rtl { + direction: rtl !important; +} +.ltr { + direction: ltr !important; +} .MuiInputBase-input { font-family: IRANSansNumeralLight !important; } diff --git a/src/views/Auth/Auth.js b/src/views/Auth/Auth.js index 1adb3b0..096686e 100644 --- a/src/views/Auth/Auth.js +++ b/src/views/Auth/Auth.js @@ -1,8 +1,9 @@ import React, { Component } from 'react'; -import {ToastContainer} from 'react-toastify'; +import { ToastContainer } from 'react-toastify'; import Logo from './Logo/Logo'; import Bio from './Bio/Bio'; import Login from './Login/Login'; +import Snackbar from '@material-ui/core/Snackbar'; import './Auth.scss'; export default class Auth extends Component { @@ -13,17 +14,34 @@ export default class Auth extends Component { page: 'logo', }; } + state = { toastView: false }; setPage = (val) => { this.setState({ page: val, }); }; + toastClose = () => { + this.setState({ toastView: false }); + }; + toast = (toastText) => { + this.setState({ toastView: true, toastText }); + }; + componentDidMount() { + window.toast = this.tosat; + } render() { + const { toastView, toastText } = this.state; return (
{message.text}
) : null} - - {message.text !== null && - message.video === null && - message.image === null && - message.music === null && - message.document === null ? ( -- {message.text} -
+ {message.type == 'voice' ? ( +{message.text}
+{chatInfo.subTitle}
@@ -362,23 +365,24 @@ class List extends Component { paddingTop: 10, overflowX: 'hidden', overflowY: this.state.file !== null ? 'hidden' : 'scroll', - paddingBottom: this.state.footer === 'suggest' ? 150 : 40, + paddingBottom: last.action === 'keyboard' ? 150 : 75, }} > {chatInfo.users && - messageList.map((item, i) => + messageList.map((message, i) => this.state.image === null && this.state.music === null && this.state.video === null ? (