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

refactor: rename Strategies to Strategy types on the frontend (#1990)

This commit is contained in:
olav 2022-08-30 09:21:31 +02:00 committed by GitHub
parent 1d43c05131
commit 4d283f953d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -205,7 +205,7 @@ exports[`returns all baseRoutes 1`] = `
"mobile": true, "mobile": true,
}, },
"path": "/strategies", "path": "/strategies",
"title": "Strategies", "title": "Strategy types",
"type": "protected", "type": "protected",
}, },
{ {

View File

@ -251,7 +251,7 @@ export const routes: IRoute[] = [
}, },
{ {
path: '/strategies', path: '/strategies',
title: 'Strategies', title: 'Strategy types',
component: StrategiesList, component: StrategiesList,
type: 'protected', type: 'protected',
menu: { mobile: true, advanced: true }, menu: { mobile: true, advanced: true },

View File

@ -20,7 +20,7 @@ export const AddStrategyButton = () => {
onClick={() => navigate('/strategies/create')} onClick={() => navigate('/strategies/create')}
permission={CREATE_STRATEGY} permission={CREATE_STRATEGY}
size="large" size="large"
tooltipProps={{ title: 'New strategy' }} tooltipProps={{ title: 'New strategy type' }}
> >
<Add /> <Add />
</PermissionIconButton> </PermissionIconButton>
@ -32,7 +32,7 @@ export const AddStrategyButton = () => {
permission={CREATE_STRATEGY} permission={CREATE_STRATEGY}
data-testid={ADD_NEW_STRATEGY_ID} data-testid={ADD_NEW_STRATEGY_ID}
> >
New strategy New strategy type
</PermissionButton> </PermissionButton>
} }
/> />

View File

@ -288,7 +288,7 @@ export const StrategiesList = () => {
isLoading={loading} isLoading={loading}
header={ header={
<PageHeader <PageHeader
title="Strategies" title="Strategy types"
actions={ actions={
<> <>
<Search <Search

View File

@ -28,7 +28,7 @@ export const useStrategies = (): IUseStrategiesOutput => {
const fetcher = (): Promise<{ strategies: IStrategy[] }> => { const fetcher = (): Promise<{ strategies: IStrategy[] }> => {
return fetch(STRATEGIES_PATH) return fetch(STRATEGIES_PATH)
.then(handleErrorResponses('Strategies')) .then(handleErrorResponses('Strategy types'))
.then(res => res.json()); .then(res => res.json());
}; };