Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

issue 507 fix #601

Merged
merged 2 commits into from
Jul 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions client/src/components/Header/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import PT from "prop-types";

import { useSearch } from "../../lib/search";
import { ReactComponent as SearchTabIcon } from "../../assets/images/search-tab-icon.svg";
import { ReactComponent as GroupsTabIcon } from "../../assets/images/groups-tab-icon.svg";
import { ReactComponent as UploadsTabIcon } from "../../assets/images/uploads-tab-icon.svg";
Expand All @@ -25,6 +26,7 @@ export default function Header({
onTabChange,
organization,
}) {
const searchContext = useSearch();
const [searchText, setSearchText] = React.useState("");
const [showAccountDropdown, setShowAccountDropdown] = React.useState(false);

Expand All @@ -42,6 +44,7 @@ export default function Header({
alert("Enter talent or keyword to search");
return;
}
searchContext.changePageNumber(1);
onSearch && onSearch(value.trim());
};

Expand Down