Skip to content

Commit d886a2f

Browse files
committed
feat: remove Cancel button in ModalSupport + small tweaks
1 parent 04ed2bc commit d886a2f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

apps/web/components/Proposals.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,12 @@ export function Proposals({
853853

854854
{loading ?
855855
<ProposalListLoading />
856+
: filteredAndSorted.length === 0 ?
857+
<div className="section-layout flex flex-col items-center justify-center text-center">
858+
<p className="text-neutral-soft-content text-sm">
859+
There are no proposals matching this filter.
860+
</p>
861+
</div>
856862
: filteredAndSorted.map((proposalData) => (
857863
<Fragment key={proposalData.proposalNumber}>
858864
<ProposalCard
@@ -922,13 +928,6 @@ export function Proposals({
922928
proposals.length > 0 && (
923929
<>
924930
<div className="flex justify-end gap-4">
925-
<Button
926-
btnStyle="outline"
927-
color="danger"
928-
onClick={() => setAllocationView((prev) => !prev)}
929-
>
930-
Cancel
931-
</Button>
932931
<Button
933932
onClick={submit}
934933
isLoading={allocateStatus === "loading"}
@@ -940,6 +939,7 @@ export function Proposals({
940939
).length
941940
}
942941
tooltip="Make changes in proposals support first"
942+
tooltipSide="tooltip-left"
943943
>
944944
Submit your support
945945
</Button>

0 commit comments

Comments
 (0)