#Matthieu-OD

1 messages · Page 1 of 1 (latest)

mortal compassBOT
hearty pagoda
#

Hi there, so you want to add a button that allows your user to open a page in a new tab?

bronze herald
#

Nope, I want to change the SignInView (from Stripe documentation) to avoid opening a new tab when clicking on the Sign in button.

Screenshot from the documentation.

hearty pagoda
#

The primaryAction doesn't have a target attribute at this moment.

#

A workaround would be adding a Link inside the SignInView and you can specify a target for the Link

bronze herald
#

I see this option but it doesn't remove the Sign in button of the SignInView so it doesn't resolve my issue.

And in the documentation it mentioned that we need to SignInView in case of login component.

hearty pagoda
#

Just curious, how do you manage the sign in if your customer is not navigated to a new tab for sign in

bronze herald
#

Thanks, I missed this part, I'm creating an issue and I will try to submit a PR.

I just want to redirect the user to a new page in the same tab. It allows me to redirect the user directly to the stripe app once the login is done.

hearty pagoda
#

OK.

#
<SignInView
        footerContent={
          <Button type="primary" css={{ width: 'fill', alignX: 'center' }}>
            Sign in
          </Button>
        }
      ></SignInView>
#

I just quickly tested this out, and I'm able to add a custom button in the SignInView

#

It looks like this

bronze herald
#

Thank you very much for your solution and how fast you gave it! It will be an excellent work around for now.

hearty pagoda
#

Welcome! happy to help.