Switch redirection on/off wrt agreement-checkbox status

This commit is contained in:
Serkan Reis 2023-02-22 22:43:52 +03:00
parent d1b8988cc0
commit 518c0f2dbe

View File

@ -63,7 +63,11 @@ export const IncomeDashboardDisclaimer = (props: IncomeDashboardDisclaimerProps)
</Button>
<a
className="my-4"
href={`https://metabase.constellations.zone/public/dashboard/4d751721-51ab-46ff-ad27-075ec8d47a17?creator_address=${props.creatorAddress}&chart_granularity_(day%252Fweek%252Fmonth)=week`}
href={
isChecked
? `https://metabase.constellations.zone/public/dashboard/4d751721-51ab-46ff-ad27-075ec8d47a17?creator_address=${props.creatorAddress}&chart_granularity_(day%252Fweek%252Fmonth)=week`
: undefined
}
rel="noopener"
target="_blank"
>