Skip to content

Commit 7931379

Browse files
Fix/faq-search-relative-navigation (#1201)
* 🐛 Add relative navigation from useNavigate in Search component * 🔖 Bump version to 10.8.3 in package.json
1 parent e968eac commit 7931379

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@equinor/amplify-component-lib",
3-
"version": "10.8.2",
3+
"version": "10.8.3",
44
"description": "Frontend Typescript components for the Amplify team",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/organisms/Faq/Search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface SearchProps {
1818
}
1919

2020
export const Search: FC<SearchProps> = ({ placeholder }) => {
21-
const navigate = useNavigate({ from: '/faq' });
21+
const navigate = useNavigate();
2222
const { search } = useSearch({ strict: false });
2323

2424
const handleOnChange = (event: ChangeEvent<HTMLInputElement>) => {

0 commit comments

Comments
 (0)