Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32088824
siwe-button.react.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
797 B
Referenced Files
None
Subscribers
None
siwe-button.react.js
View Options
// @flow
import
*
as
React
from
'react'
;
import
{
FaEthereum
}
from
'react-icons/fa'
;
import
Button
from
'../components/button.react'
;
import
css
from
'./siwe.css'
;
type
SIWEButtonProps
=
{
+
onSIWEButtonClick
:
()
=>
void
,
};
function
SIWEButton
(
props
:
SIWEButtonProps
)
:
React
.
Node
{
const
{
onSIWEButtonClick
}
=
props
;
const
siweButtonColor
=
React
.
useMemo
(
()
=>
({
backgroundColor
:
'white'
,
color
:
'black'
}),
[],
);
return
(
<
div
className
=
{
css
.
siweContainer
}
>
<
Button
onClick
=
{
onSIWEButtonClick
}
variant
=
"filled"
buttonColor
=
{
siweButtonColor
}
>
<
div
className
=
{
css
.
ethereumLogoContainer
}
>
<
FaEthereum
/>
<
/div>
Sign
in
with
Ethereum
<
/Button>
<
/div>
);
}
export
default
SIWEButton
;
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sun, Dec 7, 7:54 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5834083
Default Alt Text
siwe-button.react.js (797 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment