mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-13 12:43:59 +02:00
Fix typescript errors
This commit is contained in:
@@ -2,7 +2,6 @@ import { useEffect, useState } from 'react';
|
|||||||
import { useToast } from '../../hooks/use-toast';
|
import { useToast } from '../../hooks/use-toast';
|
||||||
import { httpGet } from '../../lib/http';
|
import { httpGet } from '../../lib/http';
|
||||||
import { AIRoadmapAlert } from '../GenerateRoadmap/AIRoadmapAlert.tsx';
|
import { AIRoadmapAlert } from '../GenerateRoadmap/AIRoadmapAlert.tsx';
|
||||||
import { ExploreAISearch } from './ExploreAISearch.tsx';
|
|
||||||
import { ExploreAISorting, type SortByValues } from './ExploreAISorting.tsx';
|
import { ExploreAISorting, type SortByValues } from './ExploreAISorting.tsx';
|
||||||
import {
|
import {
|
||||||
deleteUrlParam,
|
deleteUrlParam,
|
||||||
@@ -13,7 +12,7 @@ import { Pagination } from '../Pagination/Pagination.tsx';
|
|||||||
import { LoadingRoadmaps } from './LoadingRoadmaps.tsx';
|
import { LoadingRoadmaps } from './LoadingRoadmaps.tsx';
|
||||||
import { EmptyRoadmaps } from './EmptyRoadmaps.tsx';
|
import { EmptyRoadmaps } from './EmptyRoadmaps.tsx';
|
||||||
import { AIRoadmapsList } from './AIRoadmapsList.tsx';
|
import { AIRoadmapsList } from './AIRoadmapsList.tsx';
|
||||||
import { currentRoadmap } from '../../stores/roadmap.ts';
|
import {ExploreAISearch} from "./ExploreAISearch.tsx";
|
||||||
|
|
||||||
export interface AIRoadmapDocument {
|
export interface AIRoadmapDocument {
|
||||||
_id?: string;
|
_id?: string;
|
||||||
@@ -156,7 +155,7 @@ export function ExploreAIRoadmap() {
|
|||||||
<ExploreAISearch
|
<ExploreAISearch
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
value={pageState.searchTerm}
|
value={pageState.searchTerm}
|
||||||
onSubmit={(term) => {
|
onSubmit={(term: string) => {
|
||||||
setPageState({
|
setPageState({
|
||||||
...pageState,
|
...pageState,
|
||||||
searchTerm: term,
|
searchTerm: term,
|
||||||
|
Reference in New Issue
Block a user