diff --git a/src/assets/images/facebook.svg b/src/assets/images/facebook.svg new file mode 100644 index 0000000..c63c1ef --- /dev/null +++ b/src/assets/images/facebook.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/Connection/Connection.module.css b/src/components/Connection/Connection.module.css index 662a5a0..668ea99 100644 --- a/src/components/Connection/Connection.module.css +++ b/src/components/Connection/Connection.module.css @@ -88,13 +88,21 @@ width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); - gap: 24px + gap: 24px; } .showMoreSecondaryOptions + .showMoreSecondaryOptions { margin-top: 24px; } +.showMoreSecondaryOptions + .line { + margin-top: 14px; +} + +.line + .showMoreSecondaryOptions { + margin-top: 14px; +} + /* Not showing? */ .primaryOption { @@ -107,9 +115,14 @@ @media (max-width: 320px) { .showMoreSecondaryOptions { - grid-template-columns: repeat(1, 1fr); - } + grid-template-columns: repeat(1, 1fr); + } .secondaryOptionButton span :global(.ui.button.primary) { - margin: auto + margin: auto; } -} \ No newline at end of file +} + +.line { + border: 1px solid white; + width: 80%; +} diff --git a/src/components/Connection/Connection.tsx b/src/components/Connection/Connection.tsx index a9307be..67a2ae2 100644 --- a/src/components/Connection/Connection.tsx +++ b/src/components/Connection/Connection.tsx @@ -171,6 +171,7 @@ export const Connection = (props: ConnectionProps): JSX.Element => { loadingOption={loadingOption} /> )} + {/*
*/} {showMore && hasWeb3SecondaryOptions && ( { loadingOption={currentConnectionType} socialOptions={{ primary: ConnectionOptionType.GOOGLE, - secondary: [ConnectionOptionType.DISCORD, ConnectionOptionType.APPLE, ConnectionOptionType.X] + secondary: [ConnectionOptionType.DISCORD, ConnectionOptionType.APPLE, ConnectionOptionType.X, ConnectionOptionType.FACEBOOK] }} web3Options={ isMobile diff --git a/src/components/Pages/LoginPage/utils.ts b/src/components/Pages/LoginPage/utils.ts index f2445cd..0146399 100644 --- a/src/components/Pages/LoginPage/utils.ts +++ b/src/components/Pages/LoginPage/utils.ts @@ -16,6 +16,7 @@ export function fromConnectionOptionToProviderType(connectionType: ConnectionOpt case ConnectionOptionType.X: case ConnectionOptionType.GOOGLE: case ConnectionOptionType.APPLE: + case ConnectionOptionType.FACEBOOK: return ProviderType.MAGIC case ConnectionOptionType.WALLET_CONNECT: case ConnectionOptionType.METAMASK_MOBILE: @@ -64,6 +65,7 @@ export async function connectToProvider(connectionOption: ConnectionOptionType): const url = new URL(window.location.href) url.pathname = '/auth/callback' + console.log('Connecting to provider', connectionOption) await magic.oauth.loginWithRedirect({ provider: connectionOption === ConnectionOptionType.X ? 'twitter' : (connectionOption as OAuthProvider),