Remove "basic tabs example"

This commit is contained in:
Nicola Benaglia 2025-06-11 21:34:08 +02:00
parent 11d307fc83
commit 1eb9088b8d
15 changed files with 19 additions and 100 deletions

View File

@ -108,9 +108,6 @@ export const AppsDevModeNavBar = () => {
<Tabs
orientation="vertical"
ref={tabsRef}
aria-label={t('core:basic_tabs_example', {
postProcess: 'capitalizeFirstChar',
})}
variant="scrollable" // Make tabs scrollable
scrollButtons={true}
sx={{

View File

@ -190,7 +190,6 @@ export const AppsNavBarDesktop = ({ disableBack }) => {
<Tabs
orientation="vertical"
ref={tabsRef}
aria-label={t('core:basic_tabs_example')}
variant="scrollable" // Make tabs scrollable
scrollButtons={true}
sx={{

View File

@ -1,4 +1,5 @@
import React, {
import {
SyntheticEvent,
useCallback,
useContext,
useEffect,
@ -265,7 +266,7 @@ export const AppsPrivate = ({ myName, myAddress }) => {
}
};
const handleChange = (event: React.SyntheticEvent, newValue: number) => {
const handleChange = (event: SyntheticEvent, newValue: number) => {
setValueTabPrivateApp(newValue);
};
@ -353,9 +354,6 @@ export const AppsPrivate = ({ myName, myAddress }) => {
<Tabs
value={valueTabPrivateApp}
onChange={handleChange}
aria-label={t('core:basic_tabs_example', {
postProcess: 'capitalizeFirstChar',
})}
variant={'fullWidth'}
scrollButtons="auto"
sx={{

View File

@ -274,9 +274,6 @@ export const AddGroup = ({ address, open, setOpen }) => {
<Tabs
value={value}
onChange={handleChange}
aria-label={t('core:basic_tabs_example', {
postProcess: 'capitalizeFirstChar',
})}
variant={'fullWidth'}
scrollButtons="auto"
allowScrollButtonsMobile

View File

@ -247,9 +247,6 @@ export const ManageMembers = ({
<Tabs
value={value}
onChange={handleChange}
aria-label={t('core:basic_tabs_example', {
postProcess: 'capitalizeFirstChar',
})}
variant="scrollable" // Make tabs scrollable
scrollButtons="auto" // Show scroll buttons automatically
allowScrollButtonsMobile // Show scroll buttons on mobile as well

View File

@ -45,6 +45,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
const [nodeInfos, setNodeInfos] = useState({});
const [openSnack, setOpenSnack] = useState(false);
const [isLoading, setIsLoading] = useState(false);
const [adminInfo, setAdminInfo] = useState({});
const { isShow: isShowNext, onOk, show: showNext } = useModal();
const theme = useTheme();
const { t } = useTranslation([
@ -86,9 +87,8 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
const getName = async (address) => {
try {
const response = await fetch(
`${getBaseApiReact()}/names/primary/${address}`
);
const url = `${getBaseApiReact()}/names/primary/${address}`;
const response = await fetch(url);
const nameData = await response.json();
if (nameData?.name) {
setNames((prev) => {
@ -161,20 +161,6 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
return address;
};
// const handleAccountInfos = (address, field) => {
// if (!address) return undefined;
// if (accountInfos[address]) return accountInfos[address]?.[field];
// if (accountInfos[address] === null) return undefined;
// getAccountInfo(address, true);
// return undefined;
// };
const calculateBlocksRemainingToLevel1 = (address) => {
if (!address) return undefined;
if (!accountInfos[address]) return undefined;
return 7200 - accountInfos[address]?.blocksMinted || 0;
};
const getNodeInfos = async () => {
try {
const url = `${getBaseApiReact()}/admin/status`;
@ -206,6 +192,17 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
}
}, []);
const getAdminInfo = async () => {
try {
const url = `${getBaseApiReact()}/admin/info`;
const response = await fetch(url);
const data = await response.json();
setAdminInfo(data);
} catch (error) {
console.log(error);
}
};
const addMintingAccount = useCallback(async (val) => {
try {
setIsLoading(true);
@ -449,62 +446,6 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
}
};
// const getPublicKeyFromAddress = async (address) => {
// const url = `${getBaseApiReact()}/addresses/publickey/${address}`;
// const response = await fetch(url);
// const data = await response.text();
// return data;
// };
// const checkIfMinterGroup = async (address) => {
// const url = `${getBaseApiReact()}/groups/member/${address}`;
// const response = await fetch(url);
// const data = await response.json();
// return !!data?.find((grp) => grp?.groupId?.toString() === '694');
// };
// const removeRewardShare = useCallback(async (rewardShare) => {
// return await new Promise((res, rej) => {
// window
// .sendMessage('removeRewardShare', {
// rewardShareKeyPairPublicKey: rewardShare.rewardSharePublicKey,
// recipient: rewardShare.recipient,
// percentageShare: -1,
// })
// .then((response) => {
// if (!response?.error) {
// res(response);
// setTxList((prev) => [
// {
// ...rewardShare,
// ...response,
// type: 'remove-rewardShare',
// label: t('group:message.success.rewardshare_remove', {
// postProcess: 'capitalizeFirstChar',
// }),
// labelDone: t('group:message.success.rewardshare_remove_label', {
// postProcess: 'capitalizeFirstChar',
// }),
// done: false,
// },
// ...prev,
// ]);
// return;
// }
// rej({ message: response.error });
// })
// .catch((error) => {
// rej({
// message:
// error.message ||
// t('core:message.error.generic', {
// postProcess: 'capitalizeFirstChar',
// }),
// });
// });
// });
// }, []);
useEffect(() => {
getNodeInfos();
getMintingAccounts();
@ -924,6 +865,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
<StatCard label="Tier Share Per Block" value="13%" />
<StatCard label="Est. Reward Per Block" value="0.00506494 QORT" />
<StatCard label="Est. Reward Per Day" value="6.00782338 QORT" />
{/* <StatCard label="AdminInfo" value={adminInfo} /> */}
</Grid>
</Paper>
</Container>

View File

@ -47,9 +47,6 @@ export const Tutorials = () => {
}}
value={multiNumber}
onChange={(e, value) => setMultiNumber(value)}
aria-label={t('core:basic_tabs_example', {
postProcess: 'capitalizeFirstChar',
})}
>
{openTutorialModal?.multi?.map((item, index) => {
return (

View File

@ -116,7 +116,6 @@
"apps_official": "offizielle Apps",
"attachment": "Anhang",
"balance": "Gleichgewicht:",
"basic_tabs_example": "Basic Tabs Beispiel",
"category": "Kategorie",
"category_other": "Kategorien",
"chat": "Chat",

View File

@ -116,7 +116,6 @@
"apps_official": "official Apps",
"attachment": "attachment",
"balance": "balance:",
"basic_tabs_example": "basic tabs example",
"category": "category",
"category_other": "categories",
"chat": "chat",

View File

@ -116,7 +116,6 @@
"apps_official": "aplicaciones oficiales",
"attachment": "adjunto",
"balance": "balance:",
"basic_tabs_example": "Ejemplo de pestañas básicas",
"category": "categoría",
"category_other": "categorías",
"chat": "charlar",

View File

@ -116,7 +116,6 @@
"apps_official": "Applications officielles",
"attachment": "pièce jointe",
"balance": "équilibre:",
"basic_tabs_example": "Exemple de base des onglets",
"category": "catégorie",
"category_other": "catégories",
"chat": "chat",

View File

@ -116,7 +116,6 @@
"apps_official": "app ufficiali",
"attachment": "allegato",
"balance": "bilancio:",
"basic_tabs_example": "esempio di schede base",
"category": "categoria",
"category_other": "categorie",
"chat": "chat",

View File

@ -116,7 +116,6 @@
"apps_official": "公式アプリ",
"attachment": "添付ファイル",
"balance": "バランス:",
"basic_tabs_example": "基本的なタブの例",
"category": "カテゴリ",
"category_other": "カテゴリ",
"chat": "チャット",
@ -395,4 +394,4 @@
},
"website": "Webサイト",
"welcome": "いらっしゃいませ"
}
}

View File

@ -116,7 +116,6 @@
"apps_official": "официальные приложения",
"attachment": "вложение",
"balance": "баланс:",
"basic_tabs_example": "Основные вкладки",
"category": "категория",
"category_other": "категории",
"chat": "чат",

View File

@ -116,7 +116,6 @@
"apps_official": "官方应用程序",
"attachment": "依恋",
"balance": "平衡:",
"basic_tabs_example": "基本标签示例",
"category": "类别",
"category_other": "类别",
"chat": "聊天",