mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
more formatting
This commit is contained in:
1 parent
046447b0fb
commit
f552c1212c
157 files changed
+635
-1579
No files matched your search
@@ -24,9 +24,7 @@ const MessageGroupItem = ({ messageGroup, handleClick }: IProps): any => {
|
||||
<ListItemAvatar>
|
||||
<MuiAvatar src={messageGroup?.avatar} />
|
||||
</ListItemAvatar>
|
||||
<ListItemText>
|
||||
{messageGroup.label || messageGroup.groupDisplay}
|
||||
</ListItemText>
|
||||
<ListItemText>{messageGroup.label || messageGroup.groupDisplay}</ListItemText>
|
||||
</ListItem>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@ import useStyles from './list.styles';
|
||||
interface IProps {
|
||||
value: string;
|
||||
handleChange: (
|
||||
event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>
|
||||
event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>,
|
||||
) => void;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ const MessageSearch = ({ value, handleChange }: IProps) => {
|
||||
const { t } = useTranslation();
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<Paper elevation={24} variant='outlined' className={classes.bg}>
|
||||
<Paper elevation={24} variant="outlined" className={classes.bg}>
|
||||
<div className={classes.search}>
|
||||
<div className={classes.searchIcon}>
|
||||
<SearchIcon />
|
||||
|
||||
@@ -24,17 +24,15 @@ const MessagesList = (): any => {
|
||||
const goToConversation = useCallback(
|
||||
(messageGroup) =>
|
||||
history.push(
|
||||
`/messages/conversations/${messageGroup.groupId}/?${qs.stringify(
|
||||
messageGroup
|
||||
)}`
|
||||
`/messages/conversations/${messageGroup.groupId}/?${qs.stringify(messageGroup)}`,
|
||||
),
|
||||
[history]
|
||||
[history],
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (createMessageGroupResult?.groupId) {
|
||||
const findGroup = messageGroups.find(
|
||||
(g) => g.groupId === createMessageGroupResult.groupId
|
||||
(g) => g.groupId === createMessageGroupResult.groupId,
|
||||
);
|
||||
clearMessageGroupResult();
|
||||
if (findGroup) {
|
||||
@@ -53,9 +51,7 @@ const MessagesList = (): any => {
|
||||
const handleClick = (messageGroup: MessageGroup) => () => {
|
||||
Nui.send('phone:fetchMessages', { groupId: messageGroup.groupId });
|
||||
history.push(
|
||||
`/messages/conversations/${messageGroup.groupId}/?${qs.stringify(
|
||||
messageGroup
|
||||
)}`
|
||||
`/messages/conversations/${messageGroup.groupId}/?${qs.stringify(messageGroup)}`,
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user