Skip to content

Commit

Permalink
fixed some error
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhidinM committed Oct 13, 2023
1 parent f9533dd commit d0a5299
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 243 deletions.
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function Home() {
) : (
<div className="home_error-container">
<h2 className="text-xl font-bold text-black">Oops, no result</h2>
<p>{allCars?.message}</p>
{/* <p>{allCars?.message}</p> */}
</div>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SearchButton = ({ otherClasses }: { otherClasses: string }) => (
</button>
);

const SearchBar = ({ setManufacturer, setModel }) => {
const SearchBar = ({ setManufacturer, setModel }: any) => {
const [searchManufacturer, setSearchManufacturer] = useState("");
const [searchModel, setSearchModel] = useState("");
const router = useRouter();
Expand Down
241 changes: 0 additions & 241 deletions components/newFile.tsx

This file was deleted.

4 changes: 4 additions & 0 deletions types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export interface CustomButtonProps {
isDisabled?: boolean;
}
export interface SearchManufacturerProps {
selected: any;
setSelected: any;
manufacturer: string;
setManufacturer: (manufacturer: string) => void;
}
Expand Down Expand Up @@ -45,9 +47,11 @@ export interface OptionProps {
export interface CustomFilterProps {
title: string;
options: OptionProps[];
setFilter: any;
}

export interface ShowMoreProps {
pageNumber: number;
isNext: boolean;
setLimit: any;
}

0 comments on commit d0a5299

Please sign in to comment.