Skip to content

Commit

Permalink
Add some more demo polls
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Sep 19, 2024
1 parent 6ea8a9c commit e613cb5
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion frontend/src/constants/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,41 @@ export const demoPoll2 = {
},
} as ExtendedPoll

export const getDemoPoll = (): ExtendedPoll => randomchoice([demoPoll1, demoPoll2])
export const demoPoll3 = {
id: 'demo',
proposal: {
id: '0xdemo',
active: true,
},
ipfsParams: {
creator: 'demo',
name: 'What is your favorite movie?',
description: '',
choices: ['Terminator', 'The Matrix', 'Tron', 'The Godfather'],
options: {
publishVotes: false,
},
},
} as ExtendedPoll

export const demoPoll4 = {
id: 'demo',
proposal: {
id: '0xdemo',
active: true,
},
ipfsParams: {
creator: 'demo',
name: 'How should the change the laws?',
description: '',
choices: ['Ban strong cryptography', 'Ban blockchains', "Withdraw the FED's monopoly on money printing"],
options: {
publishVotes: false,
},
},
} as ExtendedPoll

export const getDemoPoll = (): ExtendedPoll => randomchoice([demoPoll1, demoPoll2, demoPoll3, demoPoll4])

export const demoSettings = {
timeForVoting: 610,
Expand Down

0 comments on commit e613cb5

Please sign in to comment.