From b5b8025838514de89a38e4c5be129f92f0a3e4a6 Mon Sep 17 00:00:00 2001
From: Anastasiia Sokolova <63446892+sokolova-an@users.noreply.github.com>
Date: Tue, 15 Oct 2024 15:55:24 +0200
Subject: [PATCH] feat: select track update chips (#2477)
---
src/renderer/entities/governance/constants/tracks.ts | 10 +++++-----
src/renderer/shared/api/translation/locales/en.json | 1 +
.../widgets/DelegateModal/ui/SelectTracksForm.tsx | 8 --------
3 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/src/renderer/entities/governance/constants/tracks.ts b/src/renderer/entities/governance/constants/tracks.ts
index 79f0f7942d..03928a1eb8 100644
--- a/src/renderer/entities/governance/constants/tracks.ts
+++ b/src/renderer/entities/governance/constants/tracks.ts
@@ -48,11 +48,6 @@ export const adminTracks = [
value: 'governance.addDelegation.tracks.staking',
description: 'governance.addDelegation.tracks.stakingDescription',
},
- {
- id: '15',
- value: 'governance.addDelegation.tracks.crowdloans',
- description: 'governance.addDelegation.tracks.crowdloansDescription',
- },
];
export const governanceTracks = [
@@ -61,6 +56,11 @@ export const governanceTracks = [
value: 'governance.addDelegation.tracks.governanceLease',
description: 'governance.addDelegation.tracks.governanceLeaseDescription',
},
+ {
+ id: '15',
+ value: 'governance.addDelegation.tracks.crowdloans',
+ description: 'governance.addDelegation.tracks.crowdloansDescription',
+ },
{
id: '14',
value: 'governance.addDelegation.tracks.governanceRegistrar',
diff --git a/src/renderer/shared/api/translation/locales/en.json b/src/renderer/shared/api/translation/locales/en.json
index ae90d539d1..12e50a3f4b 100644
--- a/src/renderer/shared/api/translation/locales/en.json
+++ b/src/renderer/shared/api/translation/locales/en.json
@@ -472,6 +472,7 @@
"stakingDescription": "Origin for canceling slashes.",
"treasuryAny": "Treasury: Any",
"treasuryAnyDescription": "Origin for spending (any amount of) funds until the upper limit of { value } { asset } or equivalent value in stablecoins.",
+ "treasuryAnyDescriptionGeneral": "Origin for spending (any amount of) funds until the upper limit",
"treasuryBigSpend": "Treasury: Big spend",
"treasuryBigSpendDescription": "Origin able to spend up to { value } { asset } from the treasury at once or equivalent value in stablecoins.",
"treasuryBigSpendDescriptionGeneral": "Origin able to spend big amount from the treasury.",
diff --git a/src/renderer/widgets/DelegateModal/ui/SelectTracksForm.tsx b/src/renderer/widgets/DelegateModal/ui/SelectTracksForm.tsx
index da5cfc1913..6c21677a7c 100644
--- a/src/renderer/widgets/DelegateModal/ui/SelectTracksForm.tsx
+++ b/src/renderer/widgets/DelegateModal/ui/SelectTracksForm.tsx
@@ -65,14 +65,6 @@ export const SelectTrackForm = ({ isOpen, onClose }: Props) => {
>
{t('governance.addDelegation.group.selectAll')}
-