-
-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrations - frontend adjustments (#4527)
## About the changes - [x] Create a feature flag - [x] Rename page title - [x] Rename menu item - [x] Update frontend URL (add redirect from old one) https://linear.app/unleash/issue/1-1263/integrations-frontend-adjustments
- Loading branch information
Showing
25 changed files
with
225 additions
and
94 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
frontend/src/component/integrations/AddonRedirect/AddonRedirect.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Link, useLocation, useNavigate } from 'react-router-dom'; | ||
import { useEffect } from 'react'; | ||
import { PageContent } from 'component/common/PageContent/PageContent'; | ||
|
||
export const AddonRedirect = () => { | ||
const location = useLocation(); | ||
const navigate = useNavigate(); | ||
|
||
useEffect(() => { | ||
navigate(`/integrations${location.pathname.replace('/addons', '')}`); | ||
}, [location.pathname, navigate]); | ||
|
||
return ( | ||
<PageContent> | ||
Addons where renamed to{' '} | ||
<Link to="/integrations">/integrations</Link> | ||
</PageContent> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.