From 5bb96a4fab58036f89fd257d4a1fb28074f037d5 Mon Sep 17 00:00:00 2001 From: ChaituVR Date: Sun, 5 Jan 2025 11:39:20 +0530 Subject: [PATCH] fix types --- apps/ui/src/components/FormSpaceVoting.vue | 11 +++++++++-- apps/ui/src/components/Modal/SelectPrivacy.vue | 9 ++++----- apps/ui/src/composables/useSpaceSettings.ts | 3 ++- apps/ui/src/helpers/constants.ts | 10 ++++++++-- apps/ui/src/networks/offchain/actions.ts | 2 +- apps/ui/src/networks/types.ts | 2 +- apps/ui/src/types.ts | 3 ++- apps/ui/src/views/Space/Editor.vue | 1 - 8 files changed, 27 insertions(+), 14 deletions(-) diff --git a/apps/ui/src/components/FormSpaceVoting.vue b/apps/ui/src/components/FormSpaceVoting.vue index cb5b60a2a..bd86aa504 100644 --- a/apps/ui/src/components/FormSpaceVoting.vue +++ b/apps/ui/src/components/FormSpaceVoting.vue @@ -7,7 +7,14 @@ import { import { _d } from '@/helpers/utils'; import { getValidator } from '@/helpers/validation'; import { getNetwork, offchainNetworks } from '@/networks'; -import { ChainId, Space, Validation, VoteType } from '@/types'; +import { + ChainId, + Privacy, + Space, + SpacePrivacy, + Validation, + VoteType +} from '@/types'; const votingDelay = defineModel('votingDelay', { required: true @@ -28,7 +35,7 @@ const quorum = defineModel('quorum', { const votingType = defineModel('votingType', { required: true }); -const privacy = defineModel<'none' | 'shutter' | 'any'>('privacy', { +const privacy = defineModel('privacy', { required: true }); const voteValidation = defineModel('voteValidation', { diff --git a/apps/ui/src/components/Modal/SelectPrivacy.vue b/apps/ui/src/components/Modal/SelectPrivacy.vue index 1095c46ce..6d80e93a1 100644 --- a/apps/ui/src/components/Modal/SelectPrivacy.vue +++ b/apps/ui/src/components/Modal/SelectPrivacy.vue @@ -1,21 +1,20 @@