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:
parent
eda802bcf9
commit
fceeb7da15
@ -72,8 +72,6 @@ const ProjectSelect = ({ currentProjectId, updateCurrentProject, ...rest }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProjectSelect.propTypes = {
|
ProjectSelect.propTypes = {
|
||||||
projects: PropTypes.array.isRequired,
|
|
||||||
fetchProjects: PropTypes.func.isRequired,
|
|
||||||
currentProjectId: PropTypes.string.isRequired,
|
currentProjectId: PropTypes.string.isRequired,
|
||||||
updateCurrentProject: PropTypes.func.isRequired,
|
updateCurrentProject: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
|
@ -58,7 +58,3 @@ export const useAuthApi = (): IUseAuthApiOutput => {
|
|||||||
loading,
|
loading,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const ensureRelativePath = (path: string): string => {
|
|
||||||
return path.replace(/^\//, '');
|
|
||||||
};
|
|
||||||
|
Loading…
Reference in New Issue
Block a user