aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header/SearchBar.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-08 09:33:45 +0300
committereug-vs <eug-vs@keemail.me>2020-08-08 09:33:45 +0300
commit10e146ef0215d41527f0466b0e139a6805b96540 (patch)
treefff44e753ea02132c3717002a9e6f5642a860f43 /src/components/Header/SearchBar.tsx
parentcc1133ff817218f80476d91ec509c5eaa6be86e6 (diff)
downloadwhich-ui-10e146ef0215d41527f0466b0e139a6805b96540.tar.gz
refactor: remove urls file
Diffstat (limited to 'src/components/Header/SearchBar.tsx')
-rw-r--r--src/components/Header/SearchBar.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/Header/SearchBar.tsx b/src/components/Header/SearchBar.tsx
index f54cf25..f541589 100644
--- a/src/components/Header/SearchBar.tsx
+++ b/src/components/Header/SearchBar.tsx
@@ -14,8 +14,6 @@ import { User } from 'which-types';
import { get } from '../../requests';
import UserStrip from '../UserStrip/UserStrip';
-import urls from '../../pages/urls';
-
const INTERVAL = 300;
const LIMIT = 7;
@@ -72,7 +70,7 @@ const SearchBar: React.FC = () => {
const handleNavigate = (index: number) => () => {
const { username } = results[index];
- history.push(urls.profile(username));
+ history.push(`/profile/${username}`);
handleClose();
};