Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
donywang922 committed Nov 24, 2023
2 parents 28b7a07 + ed1c44d commit d1383d3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/filtering/Filter.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
flex-grow: 1;
max-height: 100vh;
background-color: white;
margin-top: 20px;
}

.filterPart {
Expand Down
2 changes: 1 addition & 1 deletion app/filtering/filter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default function Filter(props) {

return (
<main className="main-filter">
<h3 style={{paddingBottom: '10px'}}>{props.speciesList.common_name || "No name yet"}</h3>
<h3 style={{paddingBottom: '10px'}}>{props.speciesList.common_name || "No Plant Selected"}</h3>

<div class="container">

Expand Down
2 changes: 1 addition & 1 deletion app/filtering/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import Data from '../SampleData.json'
function Filtering(props) {

const plantId = props.id;
const [speciesData, setSpeciesData] = useState(Data);
const [speciesData, setSpeciesData] = useState(null);


useEffect(() => {
Expand Down
4 changes: 0 additions & 4 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ export default function RootLayout({children,}: {
<li className="nav-item mx-xl-2 mb-2 mb-xl-0">
<Link className="nav-link text-center" aria-current="page" href="/identify">Identify</Link>
</li>
<li className="nav-item mx-xl-2 mb-2 mb-xl-0">
<Link className="nav-link text-center" aria-current="page" href="/filtering">Filter
temp</Link>
</li>
</ul>
<form className="d-flex" role="search" action={searchSubmit}>
<input className="form-control me-2" type="search" placeholder="Search"
Expand Down

0 comments on commit d1383d3

Please sign in to comment.