Merge pull request #189 from grant-project/finalize-categories

Finalize Categories
This commit is contained in:
Daniel Ternyak 2019-02-11 16:48:19 -06:00 committed by GitHub
commit 55994025c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 8 deletions

View File

@ -41,7 +41,6 @@ ProposalStage = ProposalStageEnum()
class CategoryEnum(CustomEnum):
DAPP = 'DAPP'
DEV_TOOL = 'DEV_TOOL'
CORE_DEV = 'CORE_DEV'
COMMUNITY = 'COMMUNITY'

View File

@ -9,7 +9,6 @@ export const SORT_LABELS: { [key in PROPOSAL_SORT]: string } = {
};
export enum PROPOSAL_CATEGORY {
DAPP = 'DAPP',
DEV_TOOL = 'DEV_TOOL',
CORE_DEV = 'CORE_DEV',
COMMUNITY = 'COMMUNITY',
@ -24,11 +23,6 @@ interface CategoryUI {
}
export const CATEGORY_UI: { [key in PROPOSAL_CATEGORY]: CategoryUI } = {
DAPP: {
label: 'DApp',
color: '#8e44ad',
icon: 'appstore',
},
DEV_TOOL: {
label: 'Developer tool',
color: '#2c3e50',

View File

@ -190,7 +190,7 @@ export function makeProposalPreviewFromDraft(draft: ProposalDraft): Proposal {
contributionMatching: 0,
percentFunded: 0,
stage: 'preview',
category: draft.category || PROPOSAL_CATEGORY.DAPP,
category: draft.category || PROPOSAL_CATEGORY.CORE_DEV,
isStaked: true,
arbiter: {
status: PROPOSAL_ARBITER_STATUS.ACCEPTED,