fix notification filter

This commit is contained in:
Moaz Dawalibi 2024-11-12 17:12:43 +03:00
parent e0a117d674
commit dd2d6e65b9
3 changed files with 14 additions and 7 deletions

View File

@ -14,6 +14,7 @@ const AddModel: React.FC = () => {
...values, ...values,
}); });
}; };
return ( return (
<> <>
<LayoutModel <LayoutModel

View File

@ -1,16 +1,20 @@
import React from "react";
import ValidationField from "../../../../../Components/ValidationField/ValidationField"; import ValidationField from "../../../../../Components/ValidationField/ValidationField";
import { Col, Row } from "reactstrap"; import { Col, Row } from "reactstrap";
import { useFormikContext } from "formik"; import { useGetAllUser } from "../../../../../api/user";
const FilterForm = () => { const FilterForm = () => {
const formik = useFormikContext(); const { data:Users } = useGetAllUser();
return ( return (
<div> <div>
<Row> <Row>
<Col> <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> </Col>
</Row> </Row>
</div> </div>

View File

@ -582,7 +582,8 @@
"question_content": "محتوى السؤال", "question_content": "محتوى السؤال",
"body": "النص", "body": "النص",
"seen": "شوهدت", "seen": "شوهدت",
"notifiable_type": "نوع الاشعار" "notifiable_type": "نوع الاشعار",
"users":"المستخدمون"
}, },
"select": { "select": {
"enums": { "enums": {
@ -1035,7 +1036,8 @@
"questionBank": "بنك الأسئلة", "questionBank": "بنك الأسئلة",
"roles": "الدور", "roles": "الدور",
"coupon": "قسيمة", "coupon": "قسيمة",
"notification": "إدارة الاشعارات" "notification": "إدارة الاشعارات",
"add_notification":"إدارة الاشعارات"
}, },
"table": { "table": {
"student": "قائمة الطلاب", "student": "قائمة الطلاب",