Skip to content

Commit

Permalink
Fix form to make case verdict
Browse files Browse the repository at this point in the history
  • Loading branch information
kiv1n committed May 12, 2022
1 parent df095fa commit 5b70784
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/case/CaseCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function CaseCard({ caseObject }) {
sx={{ mt: 6 }}
/>
<LawList laws={caseLaws} sx={{ mt: 4 }} />
<CaseTabs caseObject={caseObject} sx={{ mt: 3 }} />
<CaseTabs caseObject={caseObject} caseLaws={caseLaws} sx={{ mt: 3 }} />
</CardContent>
</Card>
);
Expand Down
4 changes: 2 additions & 2 deletions components/case/CaseTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import CaseJudging from './CaseJudging';
/**
* A component with a case tabs (comments, confirmations, judging).
*/
export default function CaseTabs({ caseObject, sx }) {
export default function CaseTabs({ caseObject, caseLaws, sx }) {
const [tabValue, setTabValue] = useState('1');

function handleChange(_, newTabValue) {
Expand Down Expand Up @@ -41,7 +41,7 @@ export default function CaseTabs({ caseObject, sx }) {
<CaseConfirmations caseObject={caseObject} />
</TabPanel>
<TabPanel value="3" sx={{ px: { xs: 0, md: '24px' } }}>
<CaseJudging caseObject={caseObject} />
<CaseJudging caseObject={caseObject} caseLaws={caseLaws} />
</TabPanel>
</TabContext>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion components/case/CaseVerdictMakeDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function CaseVerdictMakeDialog({
<Typography>
Select the rules you confirm and write a message for your verdict.
</Typography>
<Divider sx={{ my: 1.5 }} />
<Divider sx={{ mt: 2 }} />
<Form
schema={schema}
uiSchema={uiSchema}
Expand Down
2 changes: 1 addition & 1 deletion pages/case/[queryCase].js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function Case() {
<CaseTop caseObject={caseObject} />
<CaseDetails caseObject={caseObject} caseLaws={caseLaws} sx={{ mt: 6 }} />
<LawList laws={caseLaws} sx={{ mt: 6 }} />
<CaseTabs caseObject={caseObject} sx={{ mt: 4 }} />
<CaseTabs caseObject={caseObject} caseLaws={caseLaws} sx={{ mt: 4 }} />
</Layout>
);
}

0 comments on commit 5b70784

Please sign in to comment.