mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-28 07:20:31 +01:00
Update content of files
This commit is contained in:
parent
01442adcef
commit
fce7cb3051
2 changed files with 9 additions and 3 deletions
|
@ -423,6 +423,7 @@ function App() {
|
||||||
(state: RootState) => state.p2pUser,
|
(state: RootState) => state.p2pUser,
|
||||||
);
|
);
|
||||||
const fiatCurrency = useAppSelector((state) => state.settings.fiatCurrency);
|
const fiatCurrency = useAppSelector((state) => state.settings.fiatCurrency);
|
||||||
|
const scwAddress = useAppSelector((state) => state.scw.address);
|
||||||
const { passcodeType, requiredOnOpen, openUnlocked } = useSelector(
|
const { passcodeType, requiredOnOpen, openUnlocked } = useSelector(
|
||||||
(state: RootState) => state.passcode,
|
(state: RootState) => state.passcode,
|
||||||
);
|
);
|
||||||
|
@ -448,6 +449,12 @@ function App() {
|
||||||
const navigateToSettings = () => {
|
const navigateToSettings = () => {
|
||||||
if (location.pathname === routePaths.SETTINGS_LANGUAGE) {
|
if (location.pathname === routePaths.SETTINGS_LANGUAGE) {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
|
} else if (
|
||||||
|
matchPath(`${routePaths.SCW_MAIN}*`, location.pathname) &&
|
||||||
|
scwAddress
|
||||||
|
) {
|
||||||
|
window.Telegram.WebApp.expand();
|
||||||
|
navigate(routePaths.SCW_SETTINGS);
|
||||||
} else if (
|
} else if (
|
||||||
location.pathname !== routePaths.SETTINGS &&
|
location.pathname !== routePaths.SETTINGS &&
|
||||||
location.pathname !== routePaths.WV
|
location.pathname !== routePaths.WV
|
||||||
|
|
|
@ -49,9 +49,8 @@ const Collectible: FC<CollectibleProps> = ({ collectible }) => {
|
||||||
const snackbarContext = useContext(SnackbarContext);
|
const snackbarContext = useContext(SnackbarContext);
|
||||||
const { botUsername } = useAppSelector((state) => state.wallet);
|
const { botUsername } = useAppSelector((state) => state.wallet);
|
||||||
const onShareClick = () => {
|
const onShareClick = () => {
|
||||||
const collectibleUrl = generateTelegramLink(botUsername, {
|
const collectibleUrl = generateTelegramLink(`${botUsername}/start`, {
|
||||||
startattach: generateStartAttach(`collectible_${collectible.address}`),
|
startapp: generateStartAttach(`collectible_${collectible.address}`),
|
||||||
attach: 'wallet',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
copyToClipboard(collectibleUrl).then(() => {
|
copyToClipboard(collectibleUrl).then(() => {
|
||||||
|
|
Loading…
Reference in a new issue