#vish_code

1 messages ¡ Page 1 of 1 (latest)

scarlet wrenBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1341304994246295585

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

tall epoch
split trellis
#

Hi! So you don't want Link at all?

tall epoch
#

We need it, but we are displaying LinkAuthenticationElement only when user clicks on continue with Link button. But this particular collapsible Secure, 1-click checkout with Link appears by default on card. Is there any way I can hide it?

#

Happens on specific browsers

split trellis
#

What browsers does it happen on? Can you also provide your code for this bit: displaying LinkAuthenticationElement only when user clicks on continue with Link button

tall epoch
#

Yes

#

It happens on Chrome

#

`const [linkMode, setLinkMode] = useState(false)
const [email, setEmail] = useState('')

return(
<>
<button onClick={() => setLinkMode(!linkMode)}>
{linkMode ? 'Continue without link' : 'Continue with link'}
</button>
{linkMode && (
<LinkAuthenticationElement
id="link-authentication-element"
onChange={handleLinkAuthenticationChange}
options={{
defaultValues: {
email: email
}
}}
/>
)}
</>
)`

split trellis
#

What is the use case of handling Link by yourself?

tall epoch
#

We wanted to give user option to proceed with/without link

split trellis
#

Does Link still appear?

tall epoch
#

Okk