Skip to content

Commit

Permalink
feat: enable report overlay (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Jun 6, 2022
1 parent 141fb0c commit 69c4211
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions src/components/Earn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,24 +413,20 @@ export default function Earn() {
</rb.Col>
</rb.Row>

{settings.useAdvancedWalletMode && (
<>
<rb.Row className="mt-5 mb-3">
<rb.Col className="d-flex justify-content-center">
<rb.Button
variant="outline-dark"
className="border-0 mb-2 d-inline-flex align-items-center"
onClick={() => setIsShowReport(true)}
>
<Sprite symbol="show" width="24" height="24" className="me-2" />
{t('earn.button_show_report')}
</rb.Button>
</rb.Col>
</rb.Row>

<rb.Row className="mt-5 mb-3">
<rb.Col className="d-flex justify-content-center">
<EarnReportOverlay show={isShowReport} onHide={() => setIsShowReport(false)} />
</>
)}

<rb.Button
variant="outline-dark"
className="border-0 mb-2 d-inline-flex align-items-center"
onClick={() => setIsShowReport(true)}
>
<Sprite symbol="show" width="24" height="24" className="me-2" />
{t('earn.button_show_report')}
</rb.Button>
</rb.Col>
</rb.Row>
</div>
)
}

0 comments on commit 69c4211

Please sign in to comment.