Replace jalaali-react-date-picker with custom MUI-based Jalali date picker - fixes all 10 security vulnerabilities
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
"use client";
|
||||
|
||||
import { DatePicker } from "jalaali-react-date-picker";
|
||||
import JalaliDatePicker from "@/components/common/JalaliDatePicker";
|
||||
|
||||
function Date() {
|
||||
return (
|
||||
<div className="flex justify-center sm-datepicker active-today jalali-dashboard">
|
||||
<DatePicker
|
||||
<JalaliDatePicker
|
||||
nextIcon={<></>}
|
||||
prevIcon={<></>}
|
||||
dayLabelRender={(e) => (
|
||||
dayLabelRender={() => (
|
||||
<div className="day-label-bar-inner-rtl">
|
||||
<div className="day-label-item !text-[10px] font-semibold">
|
||||
شنبه
|
||||
|
||||
Reference in New Issue
Block a user