diff --git a/src/components/Apps/AppInfo.tsx b/src/components/Apps/AppInfo.tsx index 6dc8c37..abca186 100644 --- a/src/components/Apps/AppInfo.tsx +++ b/src/components/Apps/AppInfo.tsx @@ -1,4 +1,3 @@ -import React, { useEffect, useMemo, useState } from 'react'; import { AppCircle, AppCircleContainer, @@ -172,7 +171,7 @@ export const AppInfo = ({ app, myName }) => { }} > - {isSelectedAppPinned + {isSelectedAppPinned // TODO translate ? 'Unpin from dashboard' : 'Pin to dashboard'} diff --git a/src/components/Apps/AppInfoSnippet.tsx b/src/components/Apps/AppInfoSnippet.tsx index 22903d9..ba71164 100644 --- a/src/components/Apps/AppInfoSnippet.tsx +++ b/src/components/Apps/AppInfoSnippet.tsx @@ -166,7 +166,7 @@ export const AppInfoSnippet = ({ sx={{ backgroundColor: theme.palette.background.paper, opacity: isSelectedAppPinned ? 0.6 : 1, - }} + }} // TODO translate > {' '} diff --git a/src/components/Apps/AppPublish.tsx b/src/components/Apps/AppPublish.tsx index 486fd8a..8875c0b 100644 --- a/src/components/Apps/AppPublish.tsx +++ b/src/components/Apps/AppPublish.tsx @@ -185,6 +185,7 @@ export const AppPublish = ({ names, categories }) => { const fee = await getFee('ARBITRARY'); await show({ + // TODO translate message: 'Would you like to publish this app?', publishFee: fee.fee + ' QORT', }); diff --git a/src/components/Apps/AppRating.tsx b/src/components/Apps/AppRating.tsx index 191650d..881cfec 100644 --- a/src/components/Apps/AppRating.tsx +++ b/src/components/Apps/AppRating.tsx @@ -106,6 +106,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => { const fee = await getFee('CREATE_POLL'); await show({ + // TODO translate message: `Would you like to rate this app a rating of ${newValue}?. It will create a POLL tx.`, publishFee: fee.fee + ' QORT', }); diff --git a/src/components/Apps/Apps-styles.tsx b/src/components/Apps/Apps-styles.tsx index dd10e36..abbbaba 100644 --- a/src/components/Apps/Apps-styles.tsx +++ b/src/components/Apps/Apps-styles.tsx @@ -351,7 +351,7 @@ export const PublishQAppChoseFile = styled(ButtonBase)(({ theme }) => ({ justifyContent: 'center', width: '120px', '&:hover': { - backgroundColor: 'action.hover', // background on hover + backgroundColor: 'action.hover', }, })); diff --git a/src/components/Apps/AppsCategoryDesktop.tsx b/src/components/Apps/AppsCategoryDesktop.tsx index 39f12ee..7fc853a 100644 --- a/src/components/Apps/AppsCategoryDesktop.tsx +++ b/src/components/Apps/AppsCategoryDesktop.tsx @@ -16,20 +16,6 @@ import { Spacer } from '../../common/Spacer'; import { AppInfoSnippet } from './AppInfoSnippet'; import { Virtuoso } from 'react-virtuoso'; -const ScrollerStyled = styled('div')({ - // Hide scrollbar for WebKit browsers (Chrome, Safari) - '::-webkit-scrollbar': { - width: '0px', - height: '0px', - }, - - // Hide scrollbar for Firefox - scrollbarWidth: 'none', - - // Hide scrollbar for IE and older Edge - msOverflowStyle: 'none', -}); - const StyledVirtuosoContainer = styled('div')({ position: 'relative', width: '100%', @@ -99,7 +85,8 @@ export const AppsCategoryDesktop = ({ }, [debouncedValue, categoryList]); const rowRenderer = (index) => { - let app = searchedList[index]; + const app = searchedList[index]; + return ( diff --git a/src/components/Apps/AppsDesktop.tsx b/src/components/Apps/AppsDesktop.tsx index 80f57b9..d1268fb 100644 --- a/src/components/Apps/AppsDesktop.tsx +++ b/src/components/Apps/AppsDesktop.tsx @@ -17,7 +17,6 @@ import { AppsCategoryDesktop } from './AppsCategoryDesktop'; import { AppsNavBarDesktop } from './AppsNavBarDesktop'; import { Box, ButtonBase, useTheme } from '@mui/material'; import { HomeIcon } from '../../assets/Icons/HomeIcon'; -import { MessagingIcon } from '../../assets/Icons/MessagingIcon'; import { Save } from '../Save/Save'; import { IconWrapper } from '../Desktop/DesktopFooter'; import { enabledDevModeAtom } from '../../atoms/global'; @@ -98,8 +97,6 @@ export const AppsDesktop = ({ setCategories(responseData); } catch (error) { console.log(error); - } finally { - // dispatch(setIsLoadingGlobal(false)) } }, []); @@ -135,8 +132,6 @@ export const AppsDesktop = ({ setAvailableQapps(combine); } catch (error) { console.log(error); - } finally { - // dispatch(setIsLoadingGlobal(false)) } }, []); useEffect(() => { @@ -338,13 +333,13 @@ export const AppsDesktop = ({ + {isEnabledDevMode && ( @@ -515,6 +511,7 @@ export const AppsDesktop = ({ }} > + + + { setDesktopViewMode('dev'); @@ -342,10 +344,10 @@ export const AppsDevMode = ({ @@ -387,6 +389,7 @@ export const AppsDevMode = ({ }} > + { return ( Apps Dashboard diff --git a/src/components/Apps/AppsLibraryDesktop.tsx b/src/components/Apps/AppsLibraryDesktop.tsx index 17b9b71..64f1007 100644 --- a/src/components/Apps/AppsLibraryDesktop.tsx +++ b/src/components/Apps/AppsLibraryDesktop.tsx @@ -273,7 +273,7 @@ export const AppsLibraryDesktop = ({ }} onClick={() => { executeEvent('navigateBack', {}); - }} + }} // TODO translate > Return to Apps Dashboard