-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* page * pre changes * initial settings page * refactor login modal * settings base final * refactor * refactoring * fixes * refactoring * final * fixes * fixes * fix crash
- Loading branch information
Showing
15 changed files
with
659 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use yew::prelude::*; | ||
|
||
#[derive(PartialEq, Properties, Clone)] | ||
pub struct TelegramButtonProps { | ||
pub onauth: String, | ||
} | ||
|
||
#[function_component(TelegramButton)] | ||
pub fn optional_image(props: &TelegramButtonProps) -> Html { | ||
let TelegramButtonProps { onauth } = props.clone(); | ||
|
||
html! { | ||
<div style="height: 40px;"> | ||
<script | ||
async=true | ||
src="https://telegram.org/js/telegram-widget.js?22" | ||
data-telegram-login={ crate::TELEGRAM_BOT_LOGIN } | ||
data-size="large" | ||
data-radius="5" | ||
data-onauth={ onauth } | ||
data-request-access="write" | ||
></script> | ||
</div> | ||
} | ||
} |
Oops, something went wrong.