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