-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Telegram widget Login #102
Conversation
Linting and formatting issues were automatically fixed. Please review the changes. |
@@ -64,6 +88,17 @@ function Login() { | |||
|
|||
const { t } = useTranslation() | |||
|
|||
const loadTelegramWidget = (botName: string, authUrl: string) => { | |||
const script = document.createElement("script") | |||
script.src = "https://telegram.org/js/telegram-widget.js?22" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里能不能拆一下或者编码下 怕被q
|
||
const loadTelegramWidget = (botName: string, authUrl: string) => { | ||
const script = document.createElement("script") | ||
script.src = "https://telegram.org/js/telegram-widget.js?22" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里也是
@@ -42,6 +74,9 @@ export default function ProfilePage() { | |||
await unbindOauth2(provider) | |||
const profile = await getProfile() | |||
setProfile(profile) | |||
if (provider === "Telegram") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
名字也是
先收拾后端吧 |
👌 |
No description provided.