|
| 1 | +import React from "react"; |
| 2 | + |
| 3 | +import PageContentsTemplate from "../PageContentsTemplate"; |
| 4 | + |
| 5 | +import StartACase from "./StartACase"; |
| 6 | +import Parameters from "./Parameters"; |
| 7 | +import VotingOptions from "./VotingOptions"; |
| 8 | +import Parties from "./Parties"; |
| 9 | +import Policy from "./Policy"; |
| 10 | +import WellDone from "./WellDone"; |
| 11 | + |
| 12 | +const leftPageContents = [ |
| 13 | + { |
| 14 | + title: "Start a case", |
| 15 | + paragraphs: [ |
| 16 | + "First, you need to write a title, and a description for the case. Make it simple to read and understand.", |
| 17 | + ], |
| 18 | + }, |
| 19 | + { |
| 20 | + title: "Parameters", |
| 21 | + paragraphs: [ |
| 22 | + "Define some parameters:", |
| 23 | + "• Choose a court to arbitrate the case.\n• Select a category.\n• Select the number of jurors.", |
| 24 | + "The more jurors you select, higher the arbitration cost will be. By default we use 3 jurors for the first " + |
| 25 | + "round. The arbitration cost is the value used to pay the jurors for their work.", |
| 26 | + ], |
| 27 | + }, |
| 28 | + { |
| 29 | + title: "Voting options", |
| 30 | + paragraphs: [ |
| 31 | + "Write the question jurors will answer when voting, and the voting options. You can have 2 or more options if needed.", |
| 32 | + ], |
| 33 | + }, |
| 34 | + { |
| 35 | + title: "Parties of the dispute", |
| 36 | + paragraphs: ["Define the parties involved in the dispute."], |
| 37 | + }, |
| 38 | + { |
| 39 | + title: "Policy", |
| 40 | + paragraphs: [ |
| 41 | + "Submit a Policy. The Policy provides jurors with a framework to vote fairly. It can be a set of " + |
| 42 | + "criteria, a contract stating the rights and duties of the parties, or any set of pre-defined rules " + |
| 43 | + "that are relevant to jurors' decision-making.", |
| 44 | + ], |
| 45 | + }, |
| 46 | + { |
| 47 | + title: "Well done!", |
| 48 | + paragraphs: [ |
| 49 | + "The case is ready to be created! Review the information, and submit the case. Don't forget to submit " + |
| 50 | + "evidence, and follow up the dispute resolution process until its conclusion.", |
| 51 | + ], |
| 52 | + }, |
| 53 | +]; |
| 54 | + |
| 55 | +const rightPageComponents = [StartACase, Parameters, VotingOptions, Parties, Policy, WellDone]; |
| 56 | + |
| 57 | +interface IDisputeResolver { |
| 58 | + toggleMiniGuide: () => void; |
| 59 | +} |
| 60 | + |
| 61 | +const DisputeResolver: React.FC<IDisputeResolver> = ({ toggleMiniGuide }) => { |
| 62 | + return ( |
| 63 | + <PageContentsTemplate |
| 64 | + toggleMiniGuide={toggleMiniGuide} |
| 65 | + leftPageContents={leftPageContents} |
| 66 | + rightPageComponents={rightPageComponents} |
| 67 | + isOnboarding={false} |
| 68 | + canClose={true} |
| 69 | + isVisible={true} |
| 70 | + /> |
| 71 | + ); |
| 72 | +}; |
| 73 | + |
| 74 | +export default DisputeResolver; |
0 commit comments