Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/appeal improper display #180

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/app/[pohid]/[chain]/[request]/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export default withClientConnected<ActionBarProps>(function ActionBar({
.
</span>

<div className="flex gap-4">
<div className="flex gap-4 flex-wrap lg:flex-nowrap ">
<Appeal
pohId={pohId}
requestIndex={index}
Expand All @@ -489,7 +489,12 @@ export default withClientConnected<ActionBarProps>(function ActionBar({

<ExternalLink
href={`https://resolve.kleros.io/cases/${currentChallenge.disputeId}`}
className="btn-main gradient h-[48px] rounded px-[24px]"
className="btn-main gradient h-[48px] rounded
items-center
justify-center
p-2
whitespace-nowrap
"
>
View case #{currentChallenge.disputeId}
</ExternalLink>
Expand Down
23 changes: 19 additions & 4 deletions src/app/[pohid]/[chain]/[request]/Appeal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,16 +288,31 @@ const Appeal: React.FC<AppealProps> = ({
};
getAppealData();
});

return disputeStatus === DisputeStatusEnum.Appealable &&
!error &&
!loading ? (
<Modal
header={`Appeal case #${disputeId}`}
trigger={
<button className="btn-sec h-[48px] rounded px-[24px]">
Appeal (ends&nbsp;
<TimeAgo time={parseInt(String(period[1]))} />)
<button className="
btn-sec
py-2
rounded
w-[150px]
md:w-auto
">
<span className="
flex
items-center
flex-wrap
md:flex-nowrap
flex-inline
whitespace-nowrap
">
Appeal (ends&nbsp;
<TimeAgo time={parseInt(String(period[1]))} />
)
</span>
</button>
}
>
Expand Down