diff options
author | 2019-12-20 17:42:31 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:55 +0300 | |
commit | 0488d7fe1baec76e796ca2af6c18f17a06d56c77 (patch) | |
tree | 521dd060e183762faa17544630c458efec8b7559 | |
parent | 1f5390328855ae3a0bdc9dda029a66c6de055e08 (diff) |
Sign In With Apple
-rw-r--r-- | vnext/src/api/index.js | 4 | ||||
-rw-r--r-- | vnext/src/ui/Login.js | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/vnext/src/api/index.js b/vnext/src/api/index.js index 31bb3096..d5fb6ba7 100644 --- a/vnext/src/api/index.js +++ b/vnext/src/api/index.js @@ -199,6 +199,10 @@ export function vkLink() { return socialLink('vk'); } +export function appleLink() { + return socialLink('apple'); +} + /** * @param {Message} msg * @param {SecureUser} visitor diff --git a/vnext/src/ui/Login.js b/vnext/src/ui/Login.js index ff16d947..b5fbc700 100644 --- a/vnext/src/ui/Login.js +++ b/vnext/src/ui/Login.js @@ -6,7 +6,7 @@ import Button from './Button'; import Input from './Input'; import { useFormState } from 'react-use-form-state'; -import { me, facebookLink, vkLink } from '../api'; +import { me, facebookLink, vkLink, appleLink } from '../api'; import './Login.css'; @@ -60,6 +60,7 @@ function Login({ visitor, onAuth }) { <Icon name="ei-sc-vk" size="s" noFill={true} /> Log in </a> + <a href={appleLink()}><img src="https://appleid.cdn-apple.com/appleid/button" /></a> </div> <p>Already registered?</p> <form onSubmit={onSubmit}> |