Skip to content

Commit

Permalink
searchbar.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
michelleli01 committed Nov 13, 2023
1 parent 6c0defc commit ef605f7
Show file tree
Hide file tree
Showing 5 changed files with 361 additions and 429 deletions.
3 changes: 3 additions & 0 deletions client/src/modules/Globals/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export default function Navbar({ userInput }: NavbarProps) {
userInput={userInput}
contrastingResultsBackground={true}
isInNavbar={true}
imgSrc={netId}
signOut={signOut}
isLoggedIn={isLoggedIn}
/>
</div>
{displayButton()}
Expand Down
7 changes: 4 additions & 3 deletions client/src/modules/Home/Components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import DTIWhiteLogo from '../../../assets/img/dti-text-white-logo.png'
import '../home.css'

/**
Home Page.
Home Page.
Uppermost View component in the component tree, the first element of the HTML body tag grabbed by index.html.
@returns the application homepage with a navbar and searchbar, popular
classes and recent reviews components.
@param imgSrc for search bar
*/
export const Home = (imgSrc: any) => {
const [isLoggedIn, token, netId, signIn, signOut] = useAuthOptionalLogin()
Expand Down Expand Up @@ -113,6 +113,7 @@ export const Home = (imgSrc: any) => {
imgSrc={`${String(imgSrc.imgSrc)}`}
signOut={signOut}
isLoggedIn={isLoggedIn}
isInNavbar={false}
/>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion client/src/modules/SearchBar/Components/Course.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type Props = {
active: boolean
enter: number
mouse: number
handler: Function
key?: string
}

Expand Down
Loading

0 comments on commit ef605f7

Please sign in to comment.