diff --git a/instances/widgets.treasury-factory.near/widget/components/Approvers.jsx b/instances/widgets.treasury-factory.near/widget/components/Approvers.jsx index 98f8fdd1..435f1517 100644 --- a/instances/widgets.treasury-factory.near/widget/components/Approvers.jsx +++ b/instances/widgets.treasury-factory.near/widget/components/Approvers.jsx @@ -1,7 +1,8 @@ -const { isNearSocial } = VM.require( - "${REPL_BASE_DEPLOYMENT_ACCOUNT}/widget/lib.common" +const { Approval, Reject } = VM.require( + "${REPL_BASE_DEPLOYMENT_ACCOUNT}/widget/components.Icons" ) || { - isNearSocial: false, + Approval: () => <>>, + Reject: () => <>>, }; const votes = props.votes ?? {}; @@ -9,11 +10,6 @@ const accounts = Object.keys(votes); const approversGroup = props.approversGroup ?? []; const maxShow = 1; const showHover = accounts?.length > maxShow; -const approve = - "https://ipfs.near.social/ipfs/bafkreib52fq4kw7gyfsupz4mrtrexbusc2lplxnopqswa5awtnlqmenena"; -const reject = - "https://ipfs.near.social/ipfs/bafkreihrwi2nzl7d2dyij3tstr6tdr7fnioq7vu37en3dxt4faihxreabm"; - const maxIndex = 100; const Container = styled.div` @@ -28,35 +24,37 @@ function getImage(acc) { return `https://i.near.social/magic/large/https://near.social/magic/img/account/${acc}`; } +const ApprovalImage = styled.div` + position: relative; + background-size: cover; + background-position: center; + background-repeat: no-repeat; + height: 40px; + width: 40px; + .status { + position: absolute; + bottom: 0; + right: 0; + } +`; + const ApproversComponent = (