Skip to content

Commit

Permalink
chore: move hooks folder
Browse files Browse the repository at this point in the history
  • Loading branch information
luigibarbato committed Oct 16, 2023
1 parent b1a280e commit fee3fbd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions components/layouts/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { FunctionComponent } from "react";
interface HeaderProps {
hideTagline?: boolean;
}
export const Header: FunctionComponent<HeaderProps> = ({
hideTagline = true,
}) => {
export const Header: FunctionComponent<HeaderProps> = ({ hideTagline }) => {
return (
<header className="header text-center flex flex-col p-0 md:p-10">
<Link href="/">
Expand Down
4 changes: 2 additions & 2 deletions generated/hooks/usefeeds.hook.ts → hooks/usefeeds.hook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import useSWR, { Fetcher } from "swr";
import { FeedItem } from "../models/FeedItem";
import { DefaultService } from "../services/DefaultService";
import { FeedItem } from "../generated/models/FeedItem";
import { DefaultService } from "../generated/services/DefaultService";
import { KeyedMutator } from "swr/_internal";

type FetcherInput = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import useSWR, { Fetcher } from "swr";
import { SearchContextDetails } from "../models/SearchContextDetails";
import { DefaultService } from "../services/DefaultService";
import { SearchContextDetails } from "../generated/models/SearchContextDetails";
import { DefaultService } from "../generated/services/DefaultService";
import { KeyedMutator } from "swr/_internal";
import { FeedItem } from "../models/FeedItem";
import { FeedItem } from "../generated/models/FeedItem";

type FetcherInput = {
key: string | null;
Expand Down
4 changes: 2 additions & 2 deletions pages/search/[searchTerm].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { NextPage } from "next";
import { useRouter } from "next/router";
import Loading from "../../components/Loading";
import { Feeds } from "../../components/Feeds";
import useFeeds from "../../generated/hooks/usefeeds.hook";
import useSearchContext from "../../generated/hooks/usesearchcontext.hook";
import useFeeds from "../../hooks/usefeeds.hook";
import useSearchContext from "../../hooks/usesearchcontext.hook";
import { SearchContext } from "../../components/SearchContextDetails";

const SearchPage: NextPage = () => {
Expand Down

0 comments on commit fee3fbd

Please sign in to comment.