1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

refactor: remove unused ProjectSelect props (#705)

* refactor: remove unused ProjectSelect props

* refactor: remove unused ensureRelativePath fn

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
This commit is contained in:
olav 2022-02-14 15:48:25 +01:00 committed by GitHub
parent eda802bcf9
commit fceeb7da15
2 changed files with 0 additions and 6 deletions

View File

@ -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,
};

View File

@ -58,7 +58,3 @@ export const useAuthApi = (): IUseAuthApiOutput => {
loading,
};
};
const ensureRelativePath = (path: string): string => {
return path.replace(/^\//, '');
};