mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-14 17:01:21 +00:00
Add translation
This commit is contained in:
parent
01ab780175
commit
23c552a2b3
@ -27,8 +27,8 @@ import {
|
|||||||
sortablePinnedAppsAtom,
|
sortablePinnedAppsAtom,
|
||||||
} from '../../atoms/global';
|
} from '../../atoms/global';
|
||||||
import { saveToLocalStorage } from './AppsNavBarDesktop';
|
import { saveToLocalStorage } from './AppsNavBarDesktop';
|
||||||
|
|
||||||
import { useAtom, useSetAtom } from 'jotai';
|
import { useAtom, useSetAtom } from 'jotai';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export const AppInfo = ({ app, myName }) => {
|
export const AppInfo = ({ app, myName }) => {
|
||||||
const isInstalled = app?.status?.status === 'READY';
|
const isInstalled = app?.status?.status === 'READY';
|
||||||
@ -37,6 +37,7 @@ export const AppInfo = ({ app, myName }) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
const { t } = useTranslation(['core', 'auth', 'group']);
|
||||||
|
|
||||||
const isSelectedAppPinned = !!sortablePinnedApps?.find(
|
const isSelectedAppPinned = !!sortablePinnedApps?.find(
|
||||||
(item) => item?.name === app?.name && item?.service === app?.service
|
(item) => item?.name === app?.name && item?.service === app?.service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user