mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
search contacts -> search messages
This commit is contained in:
1 parent
c5b1e3d8c7
commit
9cccf91a84
2 files changed
+4
-1
No files matched your search
@@ -1,4 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
import { InputBase, Paper } from "@material-ui/core";
|
import { InputBase, Paper } from "@material-ui/core";
|
||||||
import SearchIcon from "@material-ui/icons/Search";
|
import SearchIcon from "@material-ui/icons/Search";
|
||||||
|
|
||||||
@@ -12,6 +13,7 @@ interface IProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const MessageSearch = ({ value, handleChange }: IProps) => {
|
const MessageSearch = ({ value, handleChange }: IProps) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
return (
|
return (
|
||||||
<Paper elevation={24} variant="outlined" className={classes.bg}>
|
<Paper elevation={24} variant="outlined" className={classes.bg}>
|
||||||
@@ -22,7 +24,7 @@ const MessageSearch = ({ value, handleChange }: IProps) => {
|
|||||||
<InputBase
|
<InputBase
|
||||||
value={value}
|
value={value}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
placeholder="Search contacts..."
|
placeholder={t("APPS_MESSAGES_SEARCH_PLACEHOLDER")}
|
||||||
classes={{
|
classes={{
|
||||||
root: classes.inputRoot,
|
root: classes.inputRoot,
|
||||||
input: classes.inputInput,
|
input: classes.inputInput,
|
||||||
|
|||||||
@@ -53,6 +53,7 @@
|
|||||||
"APPS_CONTACT_FORM_NUMBER": "Number",
|
"APPS_CONTACT_FORM_NUMBER": "Number",
|
||||||
"APPS_CONTACT_FORM_AVATAR": "Avatar URL",
|
"APPS_CONTACT_FORM_AVATAR": "Avatar URL",
|
||||||
|
|
||||||
|
"APPS_MESSAGES_SEARCH_PLACEHOLDER": "Search messages...",
|
||||||
"APPS_MESSAGES_NEW_MESSAGE": "Message...",
|
"APPS_MESSAGES_NEW_MESSAGE": "Message...",
|
||||||
"APPS_MESSAGES_NEW_MESSAGE_GROUP": "Phone numbers...",
|
"APPS_MESSAGES_NEW_MESSAGE_GROUP": "Phone numbers...",
|
||||||
"APPS_MESSAGES_GROUP_CHAT_LABEL": "Group chat label...",
|
"APPS_MESSAGES_GROUP_CHAT_LABEL": "Group chat label...",
|
||||||
|
|||||||
Reference in new issue
Block a user