diff --git a/src/App.tsx b/src/App.tsx index c765d66..3b659dd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -71,11 +71,9 @@ import { PasswordField, ErrorText } from './components'; import { Group, requestQueueMemberNames } from './components/Group/Group'; import { TaskManager } from './components/TaskManager/TaskManager.tsx'; import { useModal } from './common/useModal'; -import { Label } from './components/Group/AddGroup'; import { CustomizedSnackbars } from './components/Snackbar/Snackbar'; import SettingsIcon from '@mui/icons-material/Settings'; import HelpIcon from '@mui/icons-material/Help'; - import { cleanUrl, getProtocol, @@ -119,11 +117,6 @@ import { } from './atoms/global'; import { useAppFullScreen } from './useAppFullscreen'; import { NotAuthenticated } from './ExtStates/NotAuthenticated'; -import { - openIndexedDB, - showSaveFilePicker, -} from './components/Apps/useQortalMessageListener'; -import { fileToBase64 } from './utils/fileReading'; import { handleGetFileFromIndexedDB } from './utils/indexedDB'; import { CoreSyncStatus } from './components/CoreSyncStatus'; import { Wallets } from './Wallets'; @@ -131,7 +124,6 @@ import { RandomSentenceGenerator } from './utils/seedPhrase/RandomSentenceGenera import { useFetchResources } from './common/useFetchResources'; import { Tutorials } from './components/Tutorials/Tutorials'; import { useHandleTutorials } from './components/Tutorials/useHandleTutorials'; -import BoundedNumericTextField from './common/BoundedNumericTextField'; import { useHandleUserInfo } from './components/Group/useHandleUserInfo'; import { Minting } from './components/Minting/Minting'; import { isRunningGateway } from './qortalRequests'; @@ -139,7 +131,6 @@ import { QMailStatus } from './components/QMailStatus'; import { GlobalActions } from './components/GlobalActions/GlobalActions'; import { useBlockedAddresses } from './components/Group/useBlockUsers'; import { WalletIcon } from './assets/Icons/WalletIcon'; -import { DrawerUserLookup } from './components/Drawer/DrawerUserLookup'; import { UserLookup } from './components/UserLookup.tsx/UserLookup'; import { RegisterName } from './components/RegisterName'; import { BuyQortInformation } from './components/BuyQortInformation'; @@ -1350,13 +1341,13 @@ function App() { slotProps={{ tooltip: { sx: { - color: '#ffffff', - backgroundColor: '#444444', + color: theme.palette.text.primary, + backgroundColor: theme.palette.background.default, }, }, arrow: { sx: { - color: '#444444', + color: theme.palette.text.primary, }, }, }} @@ -1387,13 +1378,13 @@ function App() { slotProps={{ tooltip: { sx: { - color: '#ffffff', - backgroundColor: '#444444', + color: theme.palette.text.primary, + backgroundColor: theme.palette.background.default, }, }, arrow: { sx: { - color: '#444444', + color: theme.palette.text.primary, }, }, }} @@ -1438,10 +1429,10 @@ function App() { > {ltcBalance} LTC @@ -1496,10 +1487,10 @@ function App() { > {balance?.toFixed(2)} QORT @@ -1518,13 +1509,13 @@ function App() { {userInfo && !userInfo?.name && ( { @@ -1549,12 +1540,12 @@ function App() { )} { @@ -1574,18 +1565,18 @@ function App() { return ( {isMobile && ( @@ -1638,13 +1629,13 @@ function App() { slotProps={{ tooltip: { sx: { - color: '#ffffff', - backgroundColor: '#444444', + color: theme.palette.text.primary, + backgroundColor: theme.palette.background.default, }, }, arrow: { sx: { - color: '#444444', + color: theme.palette.text.primary, }, }, }} @@ -1687,13 +1678,13 @@ function App() { slotProps={{ tooltip: { sx: { - color: '#ffffff', - backgroundColor: '#444444', + color: theme.palette.text.primary, + backgroundColor: theme.palette.background.default, }, }, arrow: { sx: { - color: '#444444', + color: theme.palette.text.primary, }, }, }} @@ -1724,13 +1715,13 @@ function App() { slotProps={{ tooltip: { sx: { - color: '#ffffff', - backgroundColor: '#444444', + color: theme.palette.text.primary, + backgroundColor: theme.palette.background.default, }, }, arrow: { sx: { - color: '#444444', + color: theme.palette.text.primary, }, }, }} @@ -1761,13 +1752,13 @@ function App() { slotProps={{ tooltip: { sx: { - color: '#ffffff', - backgroundColor: '#444444', // TODO: use theme and adapt colors + color: theme.palette.text.primary, + backgroundColor: theme.palette.background.default, }, }, arrow: { sx: { - color: '#444444', + color: theme.palette.text.primary, }, }, }} @@ -1797,13 +1788,13 @@ function App() { slotProps={{ tooltip: { sx: { - color: '#ffffff', - backgroundColor: '#444444', + color: theme.palette.text.primary, + backgroundColor: theme.palette.background.default, }, }, arrow: { sx: { - color: '#444444', + color: theme.palette.text.primary, }, }, }} @@ -1904,13 +1895,13 @@ function App() { slotProps={{ tooltip: { sx: { - color: '#ffffff', - backgroundColor: '#444444', + color: theme.palette.text.primary, + backgroundColor: theme.palette.background.default, }, }, arrow: { sx: { - color: '#444444', + color: theme.palette.text.primary, }, }, }} @@ -1947,13 +1938,13 @@ function App() { slotProps={{ tooltip: { sx: { - color: '#ffffff', - backgroundColor: '#444444', + color: theme.palette.text.primary, + backgroundColor: theme.palette.background.default, }, }, arrow: { sx: { - color: '#444444', + color: theme.palette.text.primary, }, }, }} @@ -1976,13 +1967,13 @@ function App() { slotProps={{ tooltip: { sx: { - color: '#ffffff', - backgroundColor: '#444444', + color: theme.palette.text.primary, + backgroundColor: theme.palette.background.default, }, }, arrow: { sx: { - color: '#444444', + color: theme.palette.text.primary, }, }, }} @@ -2104,7 +2095,7 @@ function App() { width: '100%', height: '100%', position: 'fixed', - background: '#27282c', + background: theme.palette.background.default, display: 'flex', flexDirection: 'column', alignItems: 'center', @@ -2573,6 +2564,7 @@ function App() { + {requestConnection?.hostname}

requests authentication
+ + + + Authenticate + + { setExtstate('create-wallet'); @@ -2609,14 +2607,15 @@ function App() { {extState === 'wallets' && ( <> + + {rawWallet?.name ? rawWallet?.name : rawWallet?.address0} + + + <> Wallet Password + + + Authenticate + {walletToBeDecryptedError} @@ -2751,12 +2758,12 @@ function App() { + + + + {!walletToBeDownloaded && ( <> @@ -2841,12 +2852,12 @@ function App() { @@ -2988,11 +2998,11 @@ function App() { {generatorRef.current?.parsedString} @@ -3036,6 +3046,7 @@ function App() { + + Wallet Password + + + + Confirm Wallet Password + + + There is no minimum length requirement + @@ -3127,13 +3147,13 @@ function App() { {isOpenSendQortSuccess && ( @@ -3260,7 +3280,7 @@ function App() {