|
@@ -5,20 +5,14 @@ import ToolBar from './ToolBar'
|
|
import EditList from './EditList'
|
|
import EditList from './EditList'
|
|
import Delete from './Delete'
|
|
import Delete from './Delete'
|
|
import SubmitBtn from './SubmitBtn';
|
|
import SubmitBtn from './SubmitBtn';
|
|
-import { getContactsMemo } from '../../../../../../redux/contacts/selector'
|
|
|
|
-import { getChat } from '../../../../../../redux/chat/selector'
|
|
|
|
-import { muteChat,updateContact } from '../../../../../../api-data';
|
|
|
|
|
|
+import { getContactsMemo } from '../../../../../redux/contacts/selector'
|
|
|
|
+import { getChat } from '../../../../../redux/chat/selector'
|
|
|
|
+import { muteChat,updateContact } from '../../../../../api-data';
|
|
|
|
|
|
const useStyles = makeStyles({
|
|
const useStyles = makeStyles({
|
|
- containerAbsolute: {
|
|
|
|
- position: 'absolute',
|
|
|
|
- top: 58,
|
|
|
|
- width: 506,
|
|
|
|
- maxHeight: '905px',
|
|
|
|
- minHeight: '905px',
|
|
|
|
- overflow: 'hidden',
|
|
|
|
- backgroundColor: '#f3f2f2',
|
|
|
|
- }
|
|
|
|
|
|
+ editBar: {
|
|
|
|
+ backgroundColor: '#f3f2f2',
|
|
|
|
+ }
|
|
})
|
|
})
|
|
|
|
|
|
const EditBar= () => {
|
|
const EditBar= () => {
|
|
@@ -54,16 +48,16 @@ const EditBar= () => {
|
|
}, [Name, LastName, Mute])
|
|
}, [Name, LastName, Mute])
|
|
|
|
|
|
return (
|
|
return (
|
|
- <div>
|
|
|
|
|
|
+ <>
|
|
|
|
+ {openBtn&&<SubmitBtn handleSubmit={handleSubmit}/>}
|
|
<ToolBar />
|
|
<ToolBar />
|
|
- <div className={classes.containerAbsolute}>
|
|
|
|
|
|
+ <div className={classes.editBar}>
|
|
<EditList chat={chat} name={name} setName={setName} lastName={lastName}
|
|
<EditList chat={chat} name={name} setName={setName} lastName={lastName}
|
|
setLastName={setLastName} mute={mute} setMute={setMute}
|
|
setLastName={setLastName} mute={mute} setMute={setMute}
|
|
openBtn={openBtn} setOpenBtn={setOpenBtn} />
|
|
openBtn={openBtn} setOpenBtn={setOpenBtn} />
|
|
<Delete _id={isContact._id} />
|
|
<Delete _id={isContact._id} />
|
|
- {openBtn&&<SubmitBtn handleSubmit={handleSubmit}/>}
|
|
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </>
|
|
)
|
|
)
|
|
}
|
|
}
|
|
|
|
|