@@ -45,18 +45,18 @@ function QrAuth ({ k1, encodedUrl, callbackUrl, multiAuth }) {
45
45
)
46
46
}
47
47
48
- function LightningExplainer ( { text, children } ) {
48
+ function LightningExplainer ( { text, children, backButton , md = 12 , lg = 6 } ) {
49
49
const router = useRouter ( )
50
50
return (
51
51
< Container >
52
52
< div className = { styles . login } >
53
- < div className = 'w-100 mb-3 text-muted pointer' onClick = { ( ) => router . back ( ) } > < BackIcon /> </ div >
53
+ { backButton && < div className = 'w-100 mb-3 text-muted pointer' onClick = { ( ) => router . back ( ) } > < BackIcon /> </ div > }
54
54
< h3 className = 'w-100 pb-2' >
55
55
{ text || 'Login' } with Lightning
56
56
</ h3 >
57
57
< div className = 'fw-bold text-muted pb-4' > This is the most private way to use Stacker News. Just open your Lightning wallet and scan the QR code.</ div >
58
58
< Row className = 'w-100 text-muted' >
59
- < Col className = 'ps-0 mb-4' md >
59
+ < Col className = 'ps-0 mb-4' md = { md } lg = { lg } >
60
60
< AccordianItem
61
61
header = { `Which wallets can I use to ${ ( text || 'Login' ) . toLowerCase ( ) } ?` }
62
62
body = {
@@ -92,7 +92,7 @@ function LightningExplainer ({ text, children }) {
92
92
}
93
93
/>
94
94
</ Col >
95
- < Col md className = 'mx-auto' style = { { maxWidth : '300px' } } >
95
+ < Col md = { md } lg = { lg } className = 'mx-auto' style = { { maxWidth : '300px' } } >
96
96
{ children }
97
97
</ Col >
98
98
</ Row >
@@ -101,9 +101,9 @@ function LightningExplainer ({ text, children }) {
101
101
)
102
102
}
103
103
104
- export function LightningAuthWithExplainer ( { text, callbackUrl, multiAuth } ) {
104
+ export function LightningAuthWithExplainer ( { text, callbackUrl, multiAuth, backButton = true , md = 12 , lg = 6 } ) {
105
105
return (
106
- < LightningExplainer text = { text } >
106
+ < LightningExplainer text = { text } backButton = { backButton } md = { md } lg = { lg } >
107
107
< LightningAuth callbackUrl = { callbackUrl } multiAuth = { multiAuth } />
108
108
</ LightningExplainer >
109
109
)
0 commit comments