lint erors fixed
This commit is contained in:
parent
efdcb18b64
commit
fdbc8dcfa1
@ -111,7 +111,7 @@ export function TemplateSelectionStep({
|
||||
const isComingSoon = template.id === 'existing-template' && viewMode === 'main'; // Only show coming soon for placeholder
|
||||
const isDisabled = isComingSoon;
|
||||
const isCategoryCard = template.id === 'admin-templates-category';
|
||||
const isCustomCard = template.id === 'custom';
|
||||
// const isCustomCard = template.id === 'custom';
|
||||
const isSelected = selectedTemplate?.id === template.id;
|
||||
|
||||
return (
|
||||
|
||||
@ -31,14 +31,14 @@ export function StandardClosedRequestsFilters({
|
||||
searchTerm,
|
||||
priorityFilter,
|
||||
statusFilter,
|
||||
templateTypeFilter,
|
||||
// templateTypeFilter,
|
||||
sortBy,
|
||||
sortOrder,
|
||||
activeFiltersCount,
|
||||
onSearchChange,
|
||||
onPriorityChange,
|
||||
onStatusChange,
|
||||
onTemplateTypeChange,
|
||||
// onTemplateTypeChange,
|
||||
onSortByChange,
|
||||
onSortOrderChange,
|
||||
onClearFilters,
|
||||
|
||||
@ -31,13 +31,13 @@ export function StandardRequestsFilters({
|
||||
searchTerm,
|
||||
statusFilter,
|
||||
priorityFilter,
|
||||
templateTypeFilter,
|
||||
// templateTypeFilter,
|
||||
sortBy,
|
||||
sortOrder,
|
||||
onSearchChange,
|
||||
onStatusFilterChange,
|
||||
onPriorityFilterChange,
|
||||
onTemplateTypeFilterChange,
|
||||
// onTemplateTypeFilterChange,
|
||||
onSortByChange,
|
||||
onSortOrderChange,
|
||||
onClearFilters,
|
||||
|
||||
@ -87,7 +87,7 @@ export function StandardUserAllRequestsFilters({
|
||||
searchTerm,
|
||||
statusFilter,
|
||||
priorityFilter,
|
||||
templateTypeFilter,
|
||||
// templateTypeFilter,
|
||||
departmentFilter,
|
||||
slaComplianceFilter,
|
||||
initiatorFilter: _initiatorFilter,
|
||||
@ -104,7 +104,7 @@ export function StandardUserAllRequestsFilters({
|
||||
onSearchChange,
|
||||
onStatusChange,
|
||||
onPriorityChange,
|
||||
onTemplateTypeChange,
|
||||
// onTemplateTypeChange,
|
||||
onDepartmentChange,
|
||||
onSlaComplianceChange,
|
||||
onInitiatorChange: _onInitiatorChange,
|
||||
|
||||
@ -327,7 +327,7 @@ export function CreateTemplate() {
|
||||
placeholder={approver.tatType === 'days' ? '1' : '24'}
|
||||
onChange={(e) => {
|
||||
const val = parseInt(e.target.value) || 0;
|
||||
const max = approver.tatType === 'days' ? 7 : 24;
|
||||
// const max = approver.tatType === 'days' ? 7 : 24;
|
||||
// Optional: strict clamping or just allow typing and validate later
|
||||
// For better UX, let's allow typing but validate in isFormValid
|
||||
// But prevent entering negative numbers
|
||||
|
||||
@ -2,13 +2,13 @@ import { useState, useEffect } from 'react';
|
||||
import { useAuth } from '@/contexts/AuthContext';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent, CardHeader } from '@/components/ui/card';
|
||||
import { LogIn, Shield } from 'lucide-react';
|
||||
import { LogIn } from 'lucide-react';
|
||||
import { ReLogo, LandingPageImage } from '@/assets';
|
||||
import { initiateTanflowLogin } from '@/services/tanflowAuth';
|
||||
// import { initiateTanflowLogin } from '@/services/tanflowAuth';
|
||||
|
||||
export function Auth() {
|
||||
const { login, isLoading, error } = useAuth();
|
||||
const [tanflowLoading, setTanflowLoading] = useState(false);
|
||||
const [tanflowLoading] = useState(false);
|
||||
const [imageLoaded, setImageLoaded] = useState(false);
|
||||
|
||||
// Preload the background image
|
||||
@ -41,7 +41,7 @@ export function Auth() {
|
||||
}
|
||||
};
|
||||
|
||||
const handleTanflowLogin = () => {
|
||||
/* const handleTanflowLogin = () => {
|
||||
// Clear any existing session data
|
||||
localStorage.clear();
|
||||
sessionStorage.clear();
|
||||
@ -55,7 +55,7 @@ export function Auth() {
|
||||
console.error('Error details:', loginError);
|
||||
setTanflowLoading(false);
|
||||
}
|
||||
};
|
||||
}; */
|
||||
|
||||
if (error) {
|
||||
console.error('Auth Error in Auth Component:', {
|
||||
|
||||
@ -29,14 +29,14 @@ export function ClosedRequestsFilters({
|
||||
searchTerm,
|
||||
priorityFilter,
|
||||
statusFilter,
|
||||
templateTypeFilter,
|
||||
// templateTypeFilter,
|
||||
sortBy,
|
||||
sortOrder,
|
||||
activeFiltersCount,
|
||||
onSearchChange,
|
||||
onPriorityChange,
|
||||
onStatusChange,
|
||||
onTemplateTypeChange,
|
||||
// onTemplateTypeChange,
|
||||
onSortByChange,
|
||||
onSortOrderChange,
|
||||
onClearFilters,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Separator } from '@/components/ui/separator';
|
||||
import { FileText, CheckCircle2, AlertCircle } from 'lucide-react';
|
||||
import { FileText, AlertCircle } from 'lucide-react';
|
||||
import { RequestTemplate } from '@/hooks/useCreateRequestForm';
|
||||
|
||||
interface AdminRequestReviewStepProps {
|
||||
|
||||
@ -49,7 +49,7 @@ export function useCreateRequestHandlers({
|
||||
systemPolicy,
|
||||
onPolicyViolation,
|
||||
onSubmit,
|
||||
goToStep,
|
||||
// goToStep,
|
||||
}: UseHandlersOptions) {
|
||||
const navigate = useNavigate();
|
||||
const [showTemplateModal, setShowTemplateModal] = useState(false);
|
||||
|
||||
@ -22,11 +22,11 @@ export function MyRequestsFilters({
|
||||
searchTerm,
|
||||
statusFilter,
|
||||
priorityFilter,
|
||||
templateTypeFilter,
|
||||
// templateTypeFilter,
|
||||
onSearchChange,
|
||||
onStatusChange,
|
||||
onPriorityChange,
|
||||
onTemplateTypeChange,
|
||||
// onTemplateTypeChange,
|
||||
}: MyRequestsFiltersProps) {
|
||||
return (
|
||||
<Card className="border-gray-200" data-testid="my-requests-filters">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user