mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-27 15:00:22 +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,
|
||||
);
|
||||
const fiatCurrency = useAppSelector((state) => state.settings.fiatCurrency);
|
||||
const scwAddress = useAppSelector((state) => state.scw.address);
|
||||
const { passcodeType, requiredOnOpen, openUnlocked } = useSelector(
|
||||
(state: RootState) => state.passcode,
|
||||
);
|
||||
|
@ -448,6 +449,12 @@ function App() {
|
|||
const navigateToSettings = () => {
|
||||
if (location.pathname === routePaths.SETTINGS_LANGUAGE) {
|
||||
window.history.back();
|
||||
} else if (
|
||||
matchPath(`${routePaths.SCW_MAIN}*`, location.pathname) &&
|
||||
scwAddress
|
||||
) {
|
||||
window.Telegram.WebApp.expand();
|
||||
navigate(routePaths.SCW_SETTINGS);
|
||||
} else if (
|
||||
location.pathname !== routePaths.SETTINGS &&
|
||||
location.pathname !== routePaths.WV
|
||||
|
|
|
@ -49,9 +49,8 @@ const Collectible: FC<CollectibleProps> = ({ collectible }) => {
|
|||
const snackbarContext = useContext(SnackbarContext);
|
||||
const { botUsername } = useAppSelector((state) => state.wallet);
|
||||
const onShareClick = () => {
|
||||
const collectibleUrl = generateTelegramLink(botUsername, {
|
||||
startattach: generateStartAttach(`collectible_${collectible.address}`),
|
||||
attach: 'wallet',
|
||||
const collectibleUrl = generateTelegramLink(`${botUsername}/start`, {
|
||||
startapp: generateStartAttach(`collectible_${collectible.address}`),
|
||||
});
|
||||
|
||||
copyToClipboard(collectibleUrl).then(() => {
|
||||
|
|
Loading…
Reference in a new issue