mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-05-31 05:36:59 +00:00
Rename context name
This commit is contained in:
parent
9d36c1e733
commit
9edb2cf4d4
@ -236,7 +236,8 @@ const defaultValuesGlobal = {
|
|||||||
setOpenTutorialModal: () => {},
|
setOpenTutorialModal: () => {},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const MyContext = createContext<MyContextInterface>(defaultValues);
|
export const QORTAL_APP_CONTEXT =
|
||||||
|
createContext<MyContextInterface>(defaultValues);
|
||||||
|
|
||||||
export let globalApiKey: string | null = null;
|
export let globalApiKey: string | null = null;
|
||||||
|
|
||||||
@ -2016,7 +2017,7 @@ function App() {
|
|||||||
>
|
>
|
||||||
<PdfViewer />
|
<PdfViewer />
|
||||||
|
|
||||||
<MyContext.Provider value={contextValue}>
|
<QORTAL_APP_CONTEXT.Provider value={contextValue}>
|
||||||
<Tutorials />
|
<Tutorials />
|
||||||
{extState === 'not-authenticated' && (
|
{extState === 'not-authenticated' && (
|
||||||
<NotAuthenticated
|
<NotAuthenticated
|
||||||
@ -3858,7 +3859,7 @@ function App() {
|
|||||||
setInfoSnack={setInfoSnack}
|
setInfoSnack={setInfoSnack}
|
||||||
/>
|
/>
|
||||||
<BuyQortInformation balance={balance} />
|
<BuyQortInformation balance={balance} />
|
||||||
</MyContext.Provider>
|
</QORTAL_APP_CONTEXT.Provider>
|
||||||
|
|
||||||
{extState === 'create-wallet' && walletToBeDownloaded && (
|
{extState === 'create-wallet' && walletToBeDownloaded && (
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
|
@ -31,7 +31,7 @@ import { crypto } from './constants/decryptWallet';
|
|||||||
import { LoadingButton } from '@mui/lab';
|
import { LoadingButton } from '@mui/lab';
|
||||||
import { PasswordField } from './components';
|
import { PasswordField } from './components';
|
||||||
import { HtmlTooltip } from './components/NotAuthenticated';
|
import { HtmlTooltip } from './components/NotAuthenticated';
|
||||||
import { MyContext } from './App';
|
import { QORTAL_APP_CONTEXT } from './App';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
const parsefilenameQortal = (filename) => {
|
const parsefilenameQortal = (filename) => {
|
||||||
@ -44,7 +44,7 @@ export const Wallets = ({ setExtState, setRawWallet, rawWallet }) => {
|
|||||||
const [seedValue, setSeedValue] = useState('');
|
const [seedValue, setSeedValue] = useState('');
|
||||||
const [seedName, setSeedName] = useState('');
|
const [seedName, setSeedName] = useState('');
|
||||||
const [seedError, setSeedError] = useState('');
|
const [seedError, setSeedError] = useState('');
|
||||||
const { hasSeenGettingStarted } = useContext(MyContext);
|
const { hasSeenGettingStarted } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const [password, setPassword] = useState('');
|
const [password, setPassword] = useState('');
|
||||||
const [isOpenSeedModal, setIsOpenSeedModal] = useState(false);
|
const [isOpenSeedModal, setIsOpenSeedModal] = useState(false);
|
||||||
const [isLoadingEncryptSeed, setIsLoadingEncryptSeed] = useState(false);
|
const [isLoadingEncryptSeed, setIsLoadingEncryptSeed] = useState(false);
|
||||||
|
@ -16,7 +16,7 @@ import {
|
|||||||
useTheme,
|
useTheme,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { styled } from '@mui/system';
|
import { styled } from '@mui/system';
|
||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App';
|
||||||
import { Spacer } from '../../common/Spacer';
|
import { Spacer } from '../../common/Spacer';
|
||||||
import { executeEvent } from '../../utils/events';
|
import { executeEvent } from '../../utils/events';
|
||||||
import { useDropzone } from 'react-dropzone';
|
import { useDropzone } from 'react-dropzone';
|
||||||
@ -67,7 +67,7 @@ export const AppPublish = ({ categories, myAddress, myName }) => {
|
|||||||
const [category, setCategory] = useState('');
|
const [category, setCategory] = useState('');
|
||||||
const [appType, setAppType] = useState('APP');
|
const [appType, setAppType] = useState('APP');
|
||||||
const [file, setFile] = useState(null);
|
const [file, setFile] = useState(null);
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
const [tag1, setTag1] = useState('');
|
const [tag1, setTag1] = useState('');
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Box, Rating } from '@mui/material';
|
import { Box, Rating } from '@mui/material';
|
||||||
import { useCallback, useContext, useEffect, useRef, useState } from 'react';
|
import { useCallback, useContext, useEffect, useRef, useState } from 'react';
|
||||||
import { getFee } from '../../background';
|
import { getFee } from '../../background';
|
||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App';
|
||||||
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
||||||
import { StarFilledIcon } from '../../assets/Icons/StarFilled';
|
import { StarFilledIcon } from '../../assets/Icons/StarFilled';
|
||||||
import { StarEmptyIcon } from '../../assets/Icons/StarEmpty';
|
import { StarEmptyIcon } from '../../assets/Icons/StarEmpty';
|
||||||
@ -11,7 +11,7 @@ import { useTranslation } from 'react-i18next';
|
|||||||
|
|
||||||
export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
|
export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
|
||||||
const [value, setValue] = useState(0);
|
const [value, setValue] = useState(0);
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const [hasPublishedRating, setHasPublishedRating] = useState<null | boolean>(
|
const [hasPublishedRating, setHasPublishedRating] = useState<null | boolean>(
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import { AppsHomeDesktop } from './AppsHomeDesktop';
|
import { AppsHomeDesktop } from './AppsHomeDesktop';
|
||||||
import { Spacer } from '../../common/Spacer';
|
import { Spacer } from '../../common/Spacer';
|
||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App';
|
||||||
import { AppInfo } from './AppInfo';
|
import { AppInfo } from './AppInfo';
|
||||||
import {
|
import {
|
||||||
executeEvent,
|
executeEvent,
|
||||||
@ -49,7 +49,7 @@ export const AppsDesktop = ({
|
|||||||
const [categories, setCategories] = useState([]);
|
const [categories, setCategories] = useState([]);
|
||||||
const iframeRefs = useRef({});
|
const iframeRefs = useRef({});
|
||||||
const [isEnabledDevMode, setIsEnabledDevMode] = useAtom(enabledDevModeAtom);
|
const [isEnabledDevMode, setIsEnabledDevMode] = useAtom(enabledDevModeAtom);
|
||||||
const { showTutorial } = useContext(MyContext);
|
const { showTutorial } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ import {
|
|||||||
Input,
|
Input,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { Add } from '@mui/icons-material';
|
import { Add } from '@mui/icons-material';
|
||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App';
|
||||||
import { executeEvent } from '../../utils/events';
|
import { executeEvent } from '../../utils/events';
|
||||||
import { Spacer } from '../../common/Spacer';
|
import { Spacer } from '../../common/Spacer';
|
||||||
import { useModal } from '../../common/useModal';
|
import { useModal } from '../../common/useModal';
|
||||||
@ -48,7 +48,7 @@ export const AppsDevModeHome = ({
|
|||||||
setOpenSnackGlobal,
|
setOpenSnackGlobal,
|
||||||
infoSnackCustom,
|
infoSnackCustom,
|
||||||
setInfoSnackCustom,
|
setInfoSnackCustom,
|
||||||
} = useContext(MyContext);
|
} = useContext(QORTAL_APP_CONTEXT);
|
||||||
|
|
||||||
const handleSelectFile = async (existingFilePath) => {
|
const handleSelectFile = async (existingFilePath) => {
|
||||||
const filePath = existingFilePath || (await window.electron.selectFile());
|
const filePath = existingFilePath || (await window.electron.selectFile());
|
||||||
|
@ -37,7 +37,7 @@ import {
|
|||||||
} from './Apps-styles';
|
} from './Apps-styles';
|
||||||
import AddIcon from '@mui/icons-material/Add';
|
import AddIcon from '@mui/icons-material/Add';
|
||||||
import ImageUploader from '../../common/ImageUploader';
|
import ImageUploader from '../../common/ImageUploader';
|
||||||
import { getBaseApiReact, MyContext } from '../../App';
|
import { QORTAL_APP_CONTEXT } from '../../App';
|
||||||
import { fileToBase64 } from '../../utils/fileReading';
|
import { fileToBase64 } from '../../utils/fileReading';
|
||||||
import { objectToBase64 } from '../../qdn/encryption/group-encryption';
|
import { objectToBase64 } from '../../qdn/encryption/group-encryption';
|
||||||
import { getFee } from '../../background';
|
import { getFee } from '../../background';
|
||||||
@ -69,7 +69,7 @@ export const AppsPrivate = ({ myName, myAddress }) => {
|
|||||||
|
|
||||||
const [isOpenPrivateModal, setIsOpenPrivateModal] = useState(false);
|
const [isOpenPrivateModal, setIsOpenPrivateModal] = useState(false);
|
||||||
const { show, setInfoSnackCustom, setOpenSnackGlobal } =
|
const { show, setInfoSnackCustom, setOpenSnackGlobal } =
|
||||||
useContext(MyContext);
|
useContext(QORTAL_APP_CONTEXT);
|
||||||
const [memberGroups] = useAtom(memberGroupsAtom);
|
const [memberGroups] = useAtom(memberGroupsAtom);
|
||||||
|
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { useCallback, useContext, useEffect, useState } from 'react';
|
import { useCallback, useContext, useEffect, useState } from 'react';
|
||||||
import {
|
import {
|
||||||
MyContext,
|
QORTAL_APP_CONTEXT,
|
||||||
getArbitraryEndpointReact,
|
getArbitraryEndpointReact,
|
||||||
getBaseApiReact,
|
getBaseApiReact,
|
||||||
} from '../../App';
|
} from '../../App';
|
||||||
@ -73,7 +73,7 @@ export const AdminSpaceInner = ({
|
|||||||
useState(null);
|
useState(null);
|
||||||
const [isLoadingPublishKey, setIsLoadingPublishKey] = useState(false);
|
const [isLoadingPublishKey, setIsLoadingPublishKey] = useState(false);
|
||||||
const { show, setInfoSnackCustom, setOpenSnackGlobal } =
|
const { show, setInfoSnackCustom, setOpenSnackGlobal } =
|
||||||
useContext(MyContext);
|
useContext(QORTAL_APP_CONTEXT);
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
|
|
||||||
const getAdminGroupSecretKey = useCallback(async () => {
|
const getAdminGroupSecretKey = useCallback(async () => {
|
||||||
|
@ -19,7 +19,7 @@ import { LoadingSnackbar } from '../Snackbar/LoadingSnackbar';
|
|||||||
import {
|
import {
|
||||||
getBaseApiReact,
|
getBaseApiReact,
|
||||||
getBaseApiReactSocket,
|
getBaseApiReactSocket,
|
||||||
MyContext,
|
QORTAL_APP_CONTEXT,
|
||||||
pauseAllQueues,
|
pauseAllQueues,
|
||||||
resumeAllQueues,
|
resumeAllQueues,
|
||||||
} from '../../App';
|
} from '../../App';
|
||||||
@ -71,7 +71,7 @@ export const ChatGroup = ({
|
|||||||
hideView,
|
hideView,
|
||||||
isPrivate,
|
isPrivate,
|
||||||
}) => {
|
}) => {
|
||||||
const { isUserBlocked, show } = useContext(MyContext);
|
const { isUserBlocked, show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const [messages, setMessages] = useState([]);
|
const [messages, setMessages] = useState([]);
|
||||||
const [chatReferences, setChatReferences] = useState({});
|
const [chatReferences, setChatReferences] = useState({});
|
||||||
const [isSending, setIsSending] = useState(false);
|
const [isSending, setIsSending] = useState(false);
|
||||||
|
@ -3,7 +3,7 @@ import { Box, Button, Typography, useTheme } from '@mui/material';
|
|||||||
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
||||||
import { LoadingButton } from '@mui/lab';
|
import { LoadingButton } from '@mui/lab';
|
||||||
import {
|
import {
|
||||||
MyContext,
|
QORTAL_APP_CONTEXT,
|
||||||
getArbitraryEndpointReact,
|
getArbitraryEndpointReact,
|
||||||
getBaseApiReact,
|
getBaseApiReact,
|
||||||
pauseAllQueues,
|
pauseAllQueues,
|
||||||
@ -32,7 +32,7 @@ export const CreateCommonSecret = ({
|
|||||||
setIsForceShowCreationKeyPopup,
|
setIsForceShowCreationKeyPopup,
|
||||||
isForceShowCreationKeyPopup,
|
isForceShowCreationKeyPopup,
|
||||||
}) => {
|
}) => {
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const setTxList = useSetAtom(txListAtom);
|
const setTxList = useSetAtom(txListAtom);
|
||||||
|
|
||||||
const [openSnack, setOpenSnack] = useState(false);
|
const [openSnack, setOpenSnack] = useState(false);
|
||||||
|
@ -24,7 +24,7 @@ import { AnnouncementList } from './AnnouncementList';
|
|||||||
import CampaignIcon from '@mui/icons-material/Campaign';
|
import CampaignIcon from '@mui/icons-material/Campaign';
|
||||||
import { AnnouncementDiscussion } from './AnnouncementDiscussion';
|
import { AnnouncementDiscussion } from './AnnouncementDiscussion';
|
||||||
import {
|
import {
|
||||||
MyContext,
|
QORTAL_APP_CONTEXT,
|
||||||
getArbitraryEndpointReact,
|
getArbitraryEndpointReact,
|
||||||
getBaseApiReact,
|
getBaseApiReact,
|
||||||
pauseAllQueues,
|
pauseAllQueues,
|
||||||
@ -142,7 +142,7 @@ export const GroupAnnouncements = ({
|
|||||||
const [selectedAnnouncement, setSelectedAnnouncement] = useState(null);
|
const [selectedAnnouncement, setSelectedAnnouncement] = useState(null);
|
||||||
const [isFocusedParent, setIsFocusedParent] = useState(false);
|
const [isFocusedParent, setIsFocusedParent] = useState(false);
|
||||||
|
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const [openSnack, setOpenSnack] = useState(false);
|
const [openSnack, setOpenSnack] = useState(false);
|
||||||
const [infoSnack, setInfoSnack] = useState(null);
|
const [infoSnack, setInfoSnack] = useState(null);
|
||||||
const hasInitialized = useRef(false);
|
const hasInitialized = useRef(false);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { useCallback, useContext, useEffect, useState } from 'react';
|
import { useCallback, useContext, useEffect, useState } from 'react';
|
||||||
import Logo2 from '../../assets/svgs/Logo2.svg';
|
import Logo2 from '../../assets/svgs/Logo2.svg';
|
||||||
import {
|
import {
|
||||||
MyContext,
|
QORTAL_APP_CONTEXT,
|
||||||
getArbitraryEndpointReact,
|
getArbitraryEndpointReact,
|
||||||
getBaseApiReact,
|
getBaseApiReact,
|
||||||
} from '../../App';
|
} from '../../App';
|
||||||
@ -32,7 +32,7 @@ export const GroupAvatar = ({
|
|||||||
const [hasAvatar, setHasAvatar] = useState(false);
|
const [hasAvatar, setHasAvatar] = useState(false);
|
||||||
const [avatarFile, setAvatarFile] = useState(null);
|
const [avatarFile, setAvatarFile] = useState(null);
|
||||||
const [tempAvatar, setTempAvatar] = useState(null);
|
const [tempAvatar, setTempAvatar] = useState(null);
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
const [anchorEl, setAnchorEl] = useState(null);
|
const [anchorEl, setAnchorEl] = useState(null);
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
|
@ -22,7 +22,7 @@ import {
|
|||||||
useTheme,
|
useTheme,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { formatTimestamp } from '../../utils/time';
|
import { formatTimestamp } from '../../utils/time';
|
||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App';
|
||||||
import { generateHTML } from '@tiptap/react';
|
import { generateHTML } from '@tiptap/react';
|
||||||
import Highlight from '@tiptap/extension-highlight';
|
import Highlight from '@tiptap/extension-highlight';
|
||||||
import Mention from '@tiptap/extension-mention';
|
import Mention from '@tiptap/extension-mention';
|
||||||
@ -113,7 +113,7 @@ export const MessageItem = memo(
|
|||||||
onEdit,
|
onEdit,
|
||||||
isPrivate,
|
isPrivate,
|
||||||
}) => {
|
}) => {
|
||||||
const { getIndividualUserInfo } = useContext(MyContext);
|
const { getIndividualUserInfo } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const [anchorEl, setAnchorEl] = useState(null);
|
const [anchorEl, setAnchorEl] = useState(null);
|
||||||
const [selectedReaction, setSelectedReaction] = useState(null);
|
const [selectedReaction, setSelectedReaction] = useState(null);
|
||||||
const [userInfo, setUserInfo] = useState(null);
|
const [userInfo, setUserInfo] = useState(null);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { useContext, useState } from 'react';
|
import { useContext, useState } from 'react';
|
||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App';
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
CardContent,
|
CardContent,
|
||||||
@ -36,7 +36,7 @@ export const AttachmentCard = ({
|
|||||||
selectedGroupId,
|
selectedGroupId,
|
||||||
}) => {
|
}) => {
|
||||||
const [isOpen, setIsOpen] = useState(true);
|
const [isOpen, setIsOpen] = useState(true);
|
||||||
const { downloadResource } = useContext(MyContext);
|
const { downloadResource } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { useContext, useEffect, useState } from 'react';
|
import { useContext, useEffect, useState } from 'react';
|
||||||
import { MyContext } from '../../App';
|
import { QORTAL_APP_CONTEXT } from '../../App';
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
CardContent,
|
CardContent,
|
||||||
@ -37,7 +37,7 @@ export const PollCard = ({
|
|||||||
const [ownerName, setOwnerName] = useState('');
|
const [ownerName, setOwnerName] = useState('');
|
||||||
const [showResults, setShowResults] = useState(false);
|
const [showResults, setShowResults] = useState(false);
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
const { show, userInfo } = useContext(MyContext);
|
const { show, userInfo } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const [isLoadingSubmit, setIsLoadingSubmit] = useState(false);
|
const [isLoadingSubmit, setIsLoadingSubmit] = useState(false);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
|
@ -21,7 +21,7 @@ import {
|
|||||||
} from '@mui/icons-material';
|
} from '@mui/icons-material';
|
||||||
import { styled } from '@mui/system';
|
import { styled } from '@mui/system';
|
||||||
import { Refresh } from '@mui/icons-material';
|
import { Refresh } from '@mui/icons-material';
|
||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App';
|
||||||
import { resourceKeySelector } from '../../atoms/global';
|
import { resourceKeySelector } from '../../atoms/global';
|
||||||
|
|
||||||
import { useAtomValue } from 'jotai';
|
import { useAtomValue } from 'jotai';
|
||||||
@ -88,7 +88,7 @@ export const VideoPlayer: FC<VideoPlayerProps> = ({
|
|||||||
}, [service, name, identifier]);
|
}, [service, name, identifier]);
|
||||||
|
|
||||||
const download = useAtomValue(resourceKeySelector(keyIdentifier));
|
const download = useAtomValue(resourceKeySelector(keyIdentifier));
|
||||||
const { downloadResource } = useContext(MyContext);
|
const { downloadResource } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const videoRef = useRef<HTMLVideoElement | null>(null);
|
const videoRef = useRef<HTMLVideoElement | null>(null);
|
||||||
const [playing, setPlaying] = useState(false);
|
const [playing, setPlaying] = useState(false);
|
||||||
const [volume, setVolume] = useState(1);
|
const [volume, setVolume] = useState(1);
|
||||||
|
@ -11,7 +11,7 @@ import {
|
|||||||
useTheme,
|
useTheme,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { CustomButtonAccept } from '../../styles/App-styles';
|
import { CustomButtonAccept } from '../../styles/App-styles';
|
||||||
import { getBaseApiReact, MyContext } from '../../App';
|
import { getBaseApiReact, QORTAL_APP_CONTEXT } from '../../App';
|
||||||
import { getFee } from '../../background';
|
import { getFee } from '../../background';
|
||||||
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
||||||
import { FidgetSpinner } from 'react-loader-spinner';
|
import { FidgetSpinner } from 'react-loader-spinner';
|
||||||
@ -20,7 +20,7 @@ import { memberGroupsAtom, txListAtom } from '../../atoms/global';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export const JoinGroup = () => {
|
export const JoinGroup = () => {
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const setTxList = useSetAtom(txListAtom);
|
const setTxList = useSetAtom(txListAtom);
|
||||||
const [memberGroups] = useAtom(memberGroupsAtom);
|
const [memberGroups] = useAtom(memberGroupsAtom);
|
||||||
const [openSnack, setOpenSnack] = useState(false);
|
const [openSnack, setOpenSnack] = useState(false);
|
||||||
|
@ -35,7 +35,7 @@ import { AddGroupList } from './AddGroupList';
|
|||||||
import { UserListOfInvites } from './UserListOfInvites';
|
import { UserListOfInvites } from './UserListOfInvites';
|
||||||
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
||||||
import { getFee } from '../../background';
|
import { getFee } from '../../background';
|
||||||
import { MyContext } from '../../App';
|
import { QORTAL_APP_CONTEXT } from '../../App';
|
||||||
import { subscribeToEvent, unsubscribeFromEvent } from '../../utils/events';
|
import { subscribeToEvent, unsubscribeFromEvent } from '../../utils/events';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
@ -59,7 +59,7 @@ const Transition = forwardRef(function Transition(
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const AddGroup = ({ address, open, setOpen }) => {
|
export const AddGroup = ({ address, open, setOpen }) => {
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const setTxList = useSetAtom(txListAtom);
|
const setTxList = useSetAtom(txListAtom);
|
||||||
|
|
||||||
const [openAdvance, setOpenAdvance] = useState(false);
|
const [openAdvance, setOpenAdvance] = useState(false);
|
||||||
|
@ -23,7 +23,7 @@ import {
|
|||||||
List,
|
List,
|
||||||
} from 'react-virtualized';
|
} from 'react-virtualized';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App';
|
||||||
import { LoadingButton } from '@mui/lab';
|
import { LoadingButton } from '@mui/lab';
|
||||||
import { getFee } from '../../background';
|
import { getFee } from '../../background';
|
||||||
import LockIcon from '@mui/icons-material/Lock';
|
import LockIcon from '@mui/icons-material/Lock';
|
||||||
@ -39,7 +39,7 @@ const cache = new CellMeasurerCache({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const [memberGroups] = useAtom(memberGroupsAtom);
|
const [memberGroups] = useAtom(memberGroupsAtom);
|
||||||
const setTxList = useSetAtom(txListAtom);
|
const setTxList = useSetAtom(txListAtom);
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
|
@ -11,7 +11,7 @@ import {
|
|||||||
useTheme,
|
useTheme,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { useContext, useEffect, useState } from 'react';
|
import { useContext, useEffect, useState } from 'react';
|
||||||
import { getBaseApiReact, MyContext } from '../../App';
|
import { getBaseApiReact, QORTAL_APP_CONTEXT } from '../../App';
|
||||||
import { Spacer } from '../../common/Spacer';
|
import { Spacer } from '../../common/Spacer';
|
||||||
import {
|
import {
|
||||||
executeEvent,
|
executeEvent,
|
||||||
@ -42,7 +42,7 @@ export const BlockedUsersModal = () => {
|
|||||||
addToBlockList,
|
addToBlockList,
|
||||||
setOpenSnackGlobal,
|
setOpenSnackGlobal,
|
||||||
setInfoSnackCustom,
|
setInfoSnackCustom,
|
||||||
} = useContext(MyContext);
|
} = useContext(QORTAL_APP_CONTEXT);
|
||||||
|
|
||||||
const [blockedUsers, setBlockedUsers] = useState({
|
const [blockedUsers, setBlockedUsers] = useState({
|
||||||
addresses: {},
|
addresses: {},
|
||||||
|
@ -17,7 +17,11 @@ import { ReusableModal } from './ReusableModal';
|
|||||||
import { Spacer } from '../../../common/Spacer';
|
import { Spacer } from '../../../common/Spacer';
|
||||||
import { CreateThreadIcon } from '../../../assets/Icons/CreateThreadIcon';
|
import { CreateThreadIcon } from '../../../assets/Icons/CreateThreadIcon';
|
||||||
import { SendNewMessage } from '../../../assets/Icons/SendNewMessage';
|
import { SendNewMessage } from '../../../assets/Icons/SendNewMessage';
|
||||||
import { MyContext, pauseAllQueues, resumeAllQueues } from '../../../App';
|
import {
|
||||||
|
QORTAL_APP_CONTEXT,
|
||||||
|
pauseAllQueues,
|
||||||
|
resumeAllQueues,
|
||||||
|
} from '../../../App';
|
||||||
import { getFee } from '../../../background';
|
import { getFee } from '../../../background';
|
||||||
import TipTap from '../../Chat/TipTap';
|
import TipTap from '../../Chat/TipTap';
|
||||||
import { MessageDisplay } from '../../Chat/MessageDisplay';
|
import { MessageDisplay } from '../../Chat/MessageDisplay';
|
||||||
@ -141,7 +145,7 @@ export const NewThread = ({
|
|||||||
isPrivate,
|
isPrivate,
|
||||||
}: NewMessageProps) => {
|
}: NewMessageProps) => {
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const [isOpen, setIsOpen] = useState<boolean>(false);
|
const [isOpen, setIsOpen] = useState<boolean>(false);
|
||||||
const [value, setValue] = useState('');
|
const [value, setValue] = useState('');
|
||||||
const [isSending, setIsSending] = useState(false);
|
const [isSending, setIsSending] = useState(false);
|
||||||
|
@ -21,7 +21,7 @@ import { LoadingButton } from '@mui/lab';
|
|||||||
import LockIcon from '@mui/icons-material/Lock';
|
import LockIcon from '@mui/icons-material/Lock';
|
||||||
import NoEncryptionGmailerrorredIcon from '@mui/icons-material/NoEncryptionGmailerrorred';
|
import NoEncryptionGmailerrorredIcon from '@mui/icons-material/NoEncryptionGmailerrorred';
|
||||||
import {
|
import {
|
||||||
MyContext,
|
QORTAL_APP_CONTEXT,
|
||||||
getArbitraryEndpointReact,
|
getArbitraryEndpointReact,
|
||||||
getBaseApiReact,
|
getBaseApiReact,
|
||||||
} from '../../App';
|
} from '../../App';
|
||||||
@ -88,7 +88,7 @@ export const ListOfGroupPromotions = () => {
|
|||||||
const [fee, setFee] = useState(null);
|
const [fee, setFee] = useState(null);
|
||||||
const [isLoadingJoinGroup, setIsLoadingJoinGroup] = useState(false);
|
const [isLoadingJoinGroup, setIsLoadingJoinGroup] = useState(false);
|
||||||
const [isLoadingPublish, setIsLoadingPublish] = useState(false);
|
const [isLoadingPublish, setIsLoadingPublish] = useState(false);
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const setTxList = useSetAtom(txListAtom);
|
const setTxList = useSetAtom(txListAtom);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
|
@ -25,7 +25,7 @@ import { ListOfBans } from './ListOfBans';
|
|||||||
import { ListOfJoinRequests } from './ListOfJoinRequests';
|
import { ListOfJoinRequests } from './ListOfJoinRequests';
|
||||||
import { Box, ButtonBase, Card, Tab, Tabs, useTheme } from '@mui/material';
|
import { Box, ButtonBase, Card, Tab, Tabs, useTheme } from '@mui/material';
|
||||||
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App';
|
||||||
import { getGroupMembers, getNames } from './Group';
|
import { getGroupMembers, getNames } from './Group';
|
||||||
import { LoadingSnackbar } from '../Snackbar/LoadingSnackbar';
|
import { LoadingSnackbar } from '../Snackbar/LoadingSnackbar';
|
||||||
import { getFee } from '../../background';
|
import { getFee } from '../../background';
|
||||||
@ -72,7 +72,7 @@ export const ManageMembers = ({
|
|||||||
};
|
};
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const setTxList = useSetAtom(txListAtom);
|
const setTxList = useSetAtom(txListAtom);
|
||||||
|
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
|
@ -38,7 +38,7 @@ import { Spacer } from '../../common/Spacer';
|
|||||||
import PhraseWallet from '../../utils/generateWallet/phrase-wallet';
|
import PhraseWallet from '../../utils/generateWallet/phrase-wallet';
|
||||||
import { walletVersion } from '../../background';
|
import { walletVersion } from '../../background';
|
||||||
import Base58 from '../../deps/Base58';
|
import Base58 from '../../deps/Base58';
|
||||||
import { MyContext } from '../../App';
|
import { QORTAL_APP_CONTEXT } from '../../App';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
const LocalNodeSwitch = styled(Switch)(({ theme }) => ({
|
const LocalNodeSwitch = styled(Switch)(({ theme }) => ({
|
||||||
@ -233,7 +233,8 @@ const ExportPrivateKey = ({ rawWallet }) => {
|
|||||||
const [password, setPassword] = useState('');
|
const [password, setPassword] = useState('');
|
||||||
const [privateKey, setPrivateKey] = useState('');
|
const [privateKey, setPrivateKey] = useState('');
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
const { setOpenSnackGlobal, setInfoSnackCustom } = useContext(MyContext);
|
const { setOpenSnackGlobal, setInfoSnackCustom } =
|
||||||
|
useContext(QORTAL_APP_CONTEXT);
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
|
|
||||||
const exportPrivateKeyFunc = async () => {
|
const exportPrivateKeyFunc = async () => {
|
||||||
|
@ -14,7 +14,7 @@ import {
|
|||||||
CellMeasurerCache,
|
CellMeasurerCache,
|
||||||
List,
|
List,
|
||||||
} from 'react-virtualized';
|
} from 'react-virtualized';
|
||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { QORTAL_APP_CONTEXT, getBaseApiReact } from '../../App';
|
||||||
import { LoadingButton } from '@mui/lab';
|
import { LoadingButton } from '@mui/lab';
|
||||||
import { getFee } from '../../background';
|
import { getFee } from '../../background';
|
||||||
import LockIcon from '@mui/icons-material/Lock';
|
import LockIcon from '@mui/icons-material/Lock';
|
||||||
@ -55,7 +55,7 @@ export const UserListOfInvites = ({
|
|||||||
setInfoSnack,
|
setInfoSnack,
|
||||||
setOpenSnack,
|
setOpenSnack,
|
||||||
}) => {
|
}) => {
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const setTxList = useSetAtom(txListAtom);
|
const setTxList = useSetAtom(txListAtom);
|
||||||
|
|
||||||
const [invites, setInvites] = useState<any[]>([]);
|
const [invites, setInvites] = useState<any[]>([]);
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
import { useContext, useEffect, useState } from 'react';
|
import { useContext, useEffect, useState } from 'react';
|
||||||
import Logo2 from '../assets/svgs/Logo2.svg';
|
import Logo2 from '../assets/svgs/Logo2.svg';
|
||||||
import { MyContext, getArbitraryEndpointReact, getBaseApiReact } from '../App';
|
import {
|
||||||
|
QORTAL_APP_CONTEXT,
|
||||||
|
getArbitraryEndpointReact,
|
||||||
|
getBaseApiReact,
|
||||||
|
} from '../App';
|
||||||
import {
|
import {
|
||||||
Avatar,
|
Avatar,
|
||||||
Box,
|
Box,
|
||||||
@ -22,7 +26,7 @@ export const MainAvatar = ({ myName, balance, setOpenSnack, setInfoSnack }) => {
|
|||||||
const [hasAvatar, setHasAvatar] = useState(false);
|
const [hasAvatar, setHasAvatar] = useState(false);
|
||||||
const [avatarFile, setAvatarFile] = useState(null);
|
const [avatarFile, setAvatarFile] = useState(null);
|
||||||
const [tempAvatar, setTempAvatar] = useState(null);
|
const [tempAvatar, setTempAvatar] = useState(null);
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
|
|
||||||
const [anchorEl, setAnchorEl] = useState(null);
|
const [anchorEl, setAnchorEl] = useState(null);
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
|
@ -32,7 +32,7 @@ import Tooltip, { TooltipProps, tooltipClasses } from '@mui/material/Tooltip';
|
|||||||
import ThemeSelector from './Theme/ThemeSelector';
|
import ThemeSelector from './Theme/ThemeSelector';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import LanguageSelector from './Language/LanguageSelector';
|
import LanguageSelector from './Language/LanguageSelector';
|
||||||
import { MyContext } from '../App';
|
import { QORTAL_APP_CONTEXT } from '../App';
|
||||||
|
|
||||||
export const manifestData = {
|
export const manifestData = {
|
||||||
version: '0.5.4',
|
version: '0.5.4',
|
||||||
@ -81,7 +81,8 @@ export const NotAuthenticated = ({
|
|||||||
const [showSelectApiKey, setShowSelectApiKey] = useState(false);
|
const [showSelectApiKey, setShowSelectApiKey] = useState(false);
|
||||||
const [enteredApiKey, setEnteredApiKey] = useState('');
|
const [enteredApiKey, setEnteredApiKey] = useState('');
|
||||||
const [customNodeToSaveIndex, setCustomNodeToSaveIndex] = useState(null);
|
const [customNodeToSaveIndex, setCustomNodeToSaveIndex] = useState(null);
|
||||||
const { showTutorial, hasSeenGettingStarted } = useContext(MyContext);
|
const { showTutorial, hasSeenGettingStarted } =
|
||||||
|
useContext(QORTAL_APP_CONTEXT);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation(['auth', 'core']);
|
const { t } = useTranslation(['auth', 'core']);
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ import {
|
|||||||
useTheme,
|
useTheme,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { objectToBase64 } from '../../qdn/encryption/group-encryption';
|
import { objectToBase64 } from '../../qdn/encryption/group-encryption';
|
||||||
import { MyContext } from '../../App';
|
import { QORTAL_APP_CONTEXT } from '../../App';
|
||||||
import { getFee } from '../../background';
|
import { getFee } from '../../background';
|
||||||
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
import { CustomizedSnackbars } from '../Snackbar/Snackbar';
|
||||||
import { SaveIcon } from '../../assets/Icons/SaveIcon';
|
import { SaveIcon } from '../../assets/Icons/SaveIcon';
|
||||||
@ -82,7 +82,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
|
|||||||
const [oldPinnedApps, setOldPinnedApps] = useAtom(oldPinnedAppsAtom);
|
const [oldPinnedApps, setOldPinnedApps] = useAtom(oldPinnedAppsAtom);
|
||||||
|
|
||||||
const [anchorEl, setAnchorEl] = useState(null);
|
const [anchorEl, setAnchorEl] = useState(null);
|
||||||
const { show } = useContext(MyContext);
|
const { show } = useContext(QORTAL_APP_CONTEXT);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { useContext, useState } from 'react';
|
import { useContext, useState } from 'react';
|
||||||
import { MyContext } from '../../App';
|
import { QORTAL_APP_CONTEXT } from '../../App';
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
Dialog,
|
Dialog,
|
||||||
@ -16,7 +16,8 @@ import { VideoPlayer } from '../Embeds/VideoPlayer';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export const Tutorials = () => {
|
export const Tutorials = () => {
|
||||||
const { openTutorialModal, setOpenTutorialModal } = useContext(MyContext);
|
const { openTutorialModal, setOpenTutorialModal } =
|
||||||
|
useContext(QORTAL_APP_CONTEXT);
|
||||||
const [multiNumber, setMultiNumber] = useState(0);
|
const [multiNumber, setMultiNumber] = useState(0);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation(['core', 'tutorial']);
|
const { t } = useTranslation(['core', 'tutorial']);
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
useTheme,
|
useTheme,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { executeEvent } from '../utils/events';
|
import { executeEvent } from '../utils/events';
|
||||||
import { MyContext } from '../App';
|
import { QORTAL_APP_CONTEXT } from '../App';
|
||||||
import { useAtom } from 'jotai';
|
import { useAtom } from 'jotai';
|
||||||
import { isRunningPublicNodeAtom } from '../atoms/global';
|
import { isRunningPublicNodeAtom } from '../atoms/global';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
@ -175,7 +175,7 @@ const BlockUser = ({ address, name, handleClose }) => {
|
|||||||
const [isAlreadyBlocked, setIsAlreadyBlocked] = useState(null);
|
const [isAlreadyBlocked, setIsAlreadyBlocked] = useState(null);
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
const { isUserBlocked, addToBlockList, removeBlockFromList } =
|
const { isUserBlocked, addToBlockList, removeBlockFromList } =
|
||||||
useContext(MyContext);
|
useContext(QORTAL_APP_CONTEXT);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { useContext, useState } from 'react';
|
import { useContext, useState } from 'react';
|
||||||
import { executeEvent } from '../utils/events';
|
import { executeEvent } from '../utils/events';
|
||||||
import { getBaseApiReact, MyContext } from '../App';
|
import { getBaseApiReact, QORTAL_APP_CONTEXT } from '../App';
|
||||||
import { createEndpoint } from '../background';
|
import { createEndpoint } from '../background';
|
||||||
import {
|
import {
|
||||||
settingsLocalLastUpdatedAtom,
|
settingsLocalLastUpdatedAtom,
|
||||||
@ -19,7 +19,7 @@ export const useHandlePrivateApps = () => {
|
|||||||
setOpenSnackGlobal,
|
setOpenSnackGlobal,
|
||||||
infoSnackCustom,
|
infoSnackCustom,
|
||||||
setInfoSnackCustom,
|
setInfoSnackCustom,
|
||||||
} = useContext(MyContext);
|
} = useContext(QORTAL_APP_CONTEXT);
|
||||||
const setSortablePinnedApps = useSetAtom(sortablePinnedAppsAtom);
|
const setSortablePinnedApps = useSetAtom(sortablePinnedAppsAtom);
|
||||||
const setSettingsLocalLastUpdated = useSetAtom(settingsLocalLastUpdatedAtom);
|
const setSettingsLocalLastUpdated = useSetAtom(settingsLocalLastUpdatedAtom);
|
||||||
const { t } = useTranslation(['auth', 'core', 'group']);
|
const { t } = useTranslation(['auth', 'core', 'group']);
|
||||||
|
@ -4,7 +4,7 @@ import { navigationControllerAtom } from '../atoms/global';
|
|||||||
import { Filesystem, Directory } from '@capacitor/filesystem';
|
import { Filesystem, Directory } from '@capacitor/filesystem';
|
||||||
import { saveFile } from '../qortalRequests/get';
|
import { saveFile } from '../qortalRequests/get';
|
||||||
import { mimeToExtensionMap } from '../utils/memeTypes';
|
import { mimeToExtensionMap } from '../utils/memeTypes';
|
||||||
import { MyContext } from '../App';
|
import { QORTAL_APP_CONTEXT } from '../App';
|
||||||
import FileSaver from 'file-saver';
|
import FileSaver from 'file-saver';
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
|
|
||||||
@ -526,7 +526,7 @@ export const useQortalMessageListener = (
|
|||||||
setOpenSnackGlobal,
|
setOpenSnackGlobal,
|
||||||
infoSnackCustom,
|
infoSnackCustom,
|
||||||
setInfoSnackCustom,
|
setInfoSnackCustom,
|
||||||
} = useContext(MyContext);
|
} = useContext(QORTAL_APP_CONTEXT);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (tabId && !isNaN(history?.currentIndex)) {
|
if (tabId && !isNaN(history?.currentIndex)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user