[offers][fix] Replace onclick with href

pull/430/head
Ai Ling 3 years ago
parent 0a84058479
commit 1d4dd63938

@ -99,14 +99,10 @@ export default function OffersSubmissionResult() {
onClick={() => setStep(step - 1)} onClick={() => setStep(step - 1)}
/> />
<Button <Button
href={getProfilePath(offerProfileId as string, token as string)}
icon={EyeIcon} icon={EyeIcon}
label="View your profile" label="View your profile"
variant="primary" variant="primary"
onClick={() =>
router.push(
getProfilePath(offerProfileId as string, token as string),
)
}
/> />
</div> </div>
)} )}

Loading…
Cancel
Save