fix: resolve typescript compilation errors
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 56s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 56s
This commit is contained in:
@@ -43,7 +43,7 @@ const DateRangePicker: React.FC<DateRangePickerProps> = ({ dateRange, onChange }
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const openPicker = (ref: React.RefObject<HTMLInputElement>) => {
|
const openPicker = (ref: React.RefObject<HTMLInputElement | null>) => {
|
||||||
if (ref.current) {
|
if (ref.current) {
|
||||||
try {
|
try {
|
||||||
if ('showPicker' in HTMLInputElement.prototype) {
|
if ('showPicker' in HTMLInputElement.prototype) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { useParams, Link, useOutletContext } from 'react-router-dom';
|
import { useParams, Link, useOutletContext } from 'react-router-dom';
|
||||||
import { ArrowLeft, User, Calendar, Tag, Package, DollarSign } from 'lucide-react';
|
import { ArrowLeft, User, Tag, Package, DollarSign } from 'lucide-react';
|
||||||
import type { OrderData } from '../types';
|
import type { OrderData } from '../types';
|
||||||
|
|
||||||
const ClientDetails = () => {
|
const ClientDetails = () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { useParams, Link, useOutletContext } from 'react-router-dom';
|
import { useParams, Link, useOutletContext } from 'react-router-dom';
|
||||||
import { ArrowLeft, Package, DollarSign, Calendar } from 'lucide-react';
|
import { ArrowLeft, Package, DollarSign } from 'lucide-react';
|
||||||
import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts';
|
import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts';
|
||||||
import DateRangePicker from '../components/DateRangePicker';
|
import DateRangePicker from '../components/DateRangePicker';
|
||||||
import type { OrderData, DateRange } from '../types';
|
import type { OrderData, DateRange } from '../types';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useMemo, useState } from 'react';
|
import { useMemo, useState } from 'react';
|
||||||
import { Link, useOutletContext } from 'react-router-dom';
|
import { Link, useOutletContext } from 'react-router-dom';
|
||||||
import { Search, ChevronRight, Package, TrendingUp } from 'lucide-react';
|
import { Search, Package, TrendingUp } from 'lucide-react';
|
||||||
import DateRangePicker from '../components/DateRangePicker';
|
import DateRangePicker from '../components/DateRangePicker';
|
||||||
import type { OrderData, DateRange } from '../types';
|
import type { OrderData, DateRange } from '../types';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user