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:
parent
1d43c05131
commit
4d283f953d
@ -205,7 +205,7 @@ exports[`returns all baseRoutes 1`] = `
|
||||
"mobile": true,
|
||||
},
|
||||
"path": "/strategies",
|
||||
"title": "Strategies",
|
||||
"title": "Strategy types",
|
||||
"type": "protected",
|
||||
},
|
||||
{
|
||||
|
@ -251,7 +251,7 @@ export const routes: IRoute[] = [
|
||||
},
|
||||
{
|
||||
path: '/strategies',
|
||||
title: 'Strategies',
|
||||
title: 'Strategy types',
|
||||
component: StrategiesList,
|
||||
type: 'protected',
|
||||
menu: { mobile: true, advanced: true },
|
||||
|
@ -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>
|
||||
}
|
||||
/>
|
||||
|
@ -288,7 +288,7 @@ export const StrategiesList = () => {
|
||||
isLoading={loading}
|
||||
header={
|
||||
<PageHeader
|
||||
title="Strategies"
|
||||
title="Strategy types"
|
||||
actions={
|
||||
<>
|
||||
<Search
|
||||
|
@ -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());
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user