1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01: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,
},
"path": "/strategies",
"title": "Strategies",
"title": "Strategy types",
"type": "protected",
},
{

View File

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

View File

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

View File

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

View File

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