fix notification filter
This commit is contained in:
parent
e0a117d674
commit
dd2d6e65b9
|
|
@ -14,6 +14,7 @@ const AddModel: React.FC = () => {
|
|||
...values,
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutModel
|
||||
|
|
|
|||
|
|
@ -1,16 +1,20 @@
|
|||
import React from "react";
|
||||
import ValidationField from "../../../../../Components/ValidationField/ValidationField";
|
||||
import { Col, Row } from "reactstrap";
|
||||
import { useFormikContext } from "formik";
|
||||
import { useGetAllUser } from "../../../../../api/user";
|
||||
|
||||
const FilterForm = () => {
|
||||
const formik = useFormikContext();
|
||||
const { data:Users } = useGetAllUser();
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Row>
|
||||
<Col>
|
||||
<ValidationField placeholder="name" label="name" name="name" />
|
||||
<ValidationField placeholder="created_at" label="created_at" name="created_at" />
|
||||
|
||||
<ValidationField placeholder="users" label="users" name="users" type="Select" option={Users?.data} fieldNames={{label:"username", value:"id"}} />
|
||||
|
||||
<ValidationField placeholder="title" label="title" name="title" />
|
||||
|
||||
</Col>
|
||||
</Row>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -582,7 +582,8 @@
|
|||
"question_content": "محتوى السؤال",
|
||||
"body": "النص",
|
||||
"seen": "شوهدت",
|
||||
"notifiable_type": "نوع الاشعار"
|
||||
"notifiable_type": "نوع الاشعار",
|
||||
"users":"المستخدمون"
|
||||
},
|
||||
"select": {
|
||||
"enums": {
|
||||
|
|
@ -1035,7 +1036,8 @@
|
|||
"questionBank": "بنك الأسئلة",
|
||||
"roles": "الدور",
|
||||
"coupon": "قسيمة",
|
||||
"notification": "إدارة الاشعارات"
|
||||
"notification": "إدارة الاشعارات",
|
||||
"add_notification":"إدارة الاشعارات"
|
||||
},
|
||||
"table": {
|
||||
"student": "قائمة الطلاب",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user