From fceeb7da1580af52d4599ffe72f9afcbdf0d8ef8 Mon Sep 17 00:00:00 2001 From: olav Date: Mon, 14 Feb 2022 15:48:25 +0100 Subject: [PATCH] refactor: remove unused ProjectSelect props (#705) * refactor: remove unused ProjectSelect props * refactor: remove unused ensureRelativePath fn Co-authored-by: Fredrik Strand Oseberg --- frontend/src/component/common/ProjectSelect/ProjectSelect.jsx | 2 -- frontend/src/hooks/api/actions/useAuthApi/useAuthApi.tsx | 4 ---- 2 files changed, 6 deletions(-) diff --git a/frontend/src/component/common/ProjectSelect/ProjectSelect.jsx b/frontend/src/component/common/ProjectSelect/ProjectSelect.jsx index 702f4c3b22..cdd9ddbe0a 100644 --- a/frontend/src/component/common/ProjectSelect/ProjectSelect.jsx +++ b/frontend/src/component/common/ProjectSelect/ProjectSelect.jsx @@ -72,8 +72,6 @@ const ProjectSelect = ({ currentProjectId, updateCurrentProject, ...rest }) => { }; ProjectSelect.propTypes = { - projects: PropTypes.array.isRequired, - fetchProjects: PropTypes.func.isRequired, currentProjectId: PropTypes.string.isRequired, updateCurrentProject: PropTypes.func.isRequired, }; diff --git a/frontend/src/hooks/api/actions/useAuthApi/useAuthApi.tsx b/frontend/src/hooks/api/actions/useAuthApi/useAuthApi.tsx index 555b6ddc42..544b055b31 100644 --- a/frontend/src/hooks/api/actions/useAuthApi/useAuthApi.tsx +++ b/frontend/src/hooks/api/actions/useAuthApi/useAuthApi.tsx @@ -58,7 +58,3 @@ export const useAuthApi = (): IUseAuthApiOutput => { loading, }; }; - -const ensureRelativePath = (path: string): string => { - return path.replace(/^\//, ''); -};