Skip to content

Commit

Permalink
filter_search for phones
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxfsf committed Jan 20, 2024
1 parent aea81e9 commit 7c05e38
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 1 deletion.
1 change: 0 additions & 1 deletion frontend/src/components/Home/BrowseHome/BrowseHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const BrowseHome = () => {
setShowFilter(value);
};

console.log(showFilter)



Expand Down
28 changes: 28 additions & 0 deletions frontend/src/pages/Anime.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,42 @@

import "../styles/FilterSearch.scoped.scss";




import { useState } from 'react';

import { FilterSearchAnime } from "../components/Anime/FilterSearchAnime";
import { BrowseAniMan } from "../components/Browse/BrowseAniMan";
import { Search } from "../components/Search";

const Anime = () => {


const [showFilter, setShowFilter] = useState(false);

const handleShowFilterChange = (value) => {
setShowFilter(value);
};




return (
<>
<div className="main">


<div className="bg-blacky flex justify-center items-center ">
<Search onShowFilterChange={handleShowFilterChange}/>
</div>


{showFilter ? (
<FilterSearchAnime />

) : null}

<BrowseAniMan isanime={true} />
</div>
</>
Expand Down
20 changes: 20 additions & 0 deletions frontend/src/pages/Explore.jsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
import { Link } from "react-router-dom";
import { useState } from 'react';

import "../styles/FilterSearch.scoped.scss";
import "../styles/Explore.scoped.scss";

import { BrowseAniMan } from "../components/Browse/BrowseAniMan";
import { FilterSearchExplore } from "../components/Explore/FilterSearchExplore";
import { Search } from "../components/Search";

const Explore = () => {

const [showFilter, setShowFilter] = useState(false);

const handleShowFilterChange = (value) => {
setShowFilter(value);
};

return (
<>
<div className="main">




<div className="bg-blacky flex justify-center items-center ">
<Search onShowFilterChange={handleShowFilterChange}/>
</div>

{showFilter ? (
<FilterSearchExplore />

) : null}

<div className="subtitle flex flex-row justify-between p-6 ">
<h2>Trending Anime:</h2>
<Link to="/anime">
Expand Down
24 changes: 24 additions & 0 deletions frontend/src/pages/Manga.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@

import "../styles/FilterSearch.scoped.scss";

import { useState } from 'react';

import { FilterSearchManga } from "../components/Manga/FilterSearchManga";
import { BrowseAniMan } from "../components/Browse/BrowseAniMan";
import { Search } from "../components/Search";


const Manga = () => {

const [showFilter, setShowFilter] = useState(false);

const handleShowFilterChange = (value) => {
setShowFilter(value);
};

return (
<>
<div className="main">


<div className="bg-blacky flex justify-center items-center ">
<Search onShowFilterChange={handleShowFilterChange}/>
</div>


{showFilter ? (
<FilterSearchManga />


) : null}


<BrowseAniMan isanime={false} />
</div>
</>
Expand Down

0 comments on commit 7c05e38

Please sign in to comment.