improvement: rtl direction, solar calendar and persian formatting added for persian users.
This commit is contained in:
@@ -25,6 +25,7 @@ import { Button } from '@/components/ui/shared/Button';
|
||||
import { MobileDetailBackButton } from '@/components/ui/shared/MobileDetailBackButton';
|
||||
import { FORM_SELECT_CLASS } from '@/components/shared/formSelectStyles';
|
||||
import { SearchBar } from '@/components/ui/shared/SearchBar';
|
||||
import { AppDateInput } from '@/components/ui/shared/AppDateInput';
|
||||
import type { TreatmentCatalogEntry } from '@/types/treatment-catalog';
|
||||
import type {
|
||||
AssignableTaskStaff,
|
||||
@@ -267,7 +268,7 @@ export function CasesPage() {
|
||||
}
|
||||
}
|
||||
|
||||
const filterSelectClass = `${FORM_SELECT_CLASS} w-full rounded-md px-3 py-2`;
|
||||
const filterSelectClass = `${FORM_SELECT_CLASS} w-full min-w-0 rounded-md py-1.5 text-xs sm:py-2 sm:text-sm`;
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
@@ -333,11 +334,10 @@ export function CasesPage() {
|
||||
|
||||
<label className="space-y-1">
|
||||
<span className="text-xs font-medium text-text-muted">{t('filterSentFrom')}</span>
|
||||
<input
|
||||
type="date"
|
||||
<AppDateInput
|
||||
value={sentFrom}
|
||||
onChange={(e) => {
|
||||
setSentFrom(e.target.value);
|
||||
onChange={(next) => {
|
||||
setSentFrom(next);
|
||||
setPage(1);
|
||||
}}
|
||||
className={filterSelectClass}
|
||||
@@ -346,11 +346,10 @@ export function CasesPage() {
|
||||
|
||||
<label className="space-y-1">
|
||||
<span className="text-xs font-medium text-text-muted">{t('filterSentTo')}</span>
|
||||
<input
|
||||
type="date"
|
||||
<AppDateInput
|
||||
value={sentTo}
|
||||
onChange={(e) => {
|
||||
setSentTo(e.target.value);
|
||||
onChange={(next) => {
|
||||
setSentTo(next);
|
||||
setPage(1);
|
||||
}}
|
||||
className={filterSelectClass}
|
||||
|
||||
Reference in New Issue
Block a user