mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-15 12:31:21 +00:00
Remove "basic tabs example"
This commit is contained in:
parent
11d307fc83
commit
1eb9088b8d
@ -108,9 +108,6 @@ export const AppsDevModeNavBar = () => {
|
|||||||
<Tabs
|
<Tabs
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
ref={tabsRef}
|
ref={tabsRef}
|
||||||
aria-label={t('core:basic_tabs_example', {
|
|
||||||
postProcess: 'capitalizeFirstChar',
|
|
||||||
})}
|
|
||||||
variant="scrollable" // Make tabs scrollable
|
variant="scrollable" // Make tabs scrollable
|
||||||
scrollButtons={true}
|
scrollButtons={true}
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -190,7 +190,6 @@ export const AppsNavBarDesktop = ({ disableBack }) => {
|
|||||||
<Tabs
|
<Tabs
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
ref={tabsRef}
|
ref={tabsRef}
|
||||||
aria-label={t('core:basic_tabs_example')}
|
|
||||||
variant="scrollable" // Make tabs scrollable
|
variant="scrollable" // Make tabs scrollable
|
||||||
scrollButtons={true}
|
scrollButtons={true}
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React, {
|
import {
|
||||||
|
SyntheticEvent,
|
||||||
useCallback,
|
useCallback,
|
||||||
useContext,
|
useContext,
|
||||||
useEffect,
|
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);
|
setValueTabPrivateApp(newValue);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -353,9 +354,6 @@ export const AppsPrivate = ({ myName, myAddress }) => {
|
|||||||
<Tabs
|
<Tabs
|
||||||
value={valueTabPrivateApp}
|
value={valueTabPrivateApp}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
aria-label={t('core:basic_tabs_example', {
|
|
||||||
postProcess: 'capitalizeFirstChar',
|
|
||||||
})}
|
|
||||||
variant={'fullWidth'}
|
variant={'fullWidth'}
|
||||||
scrollButtons="auto"
|
scrollButtons="auto"
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -274,9 +274,6 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
<Tabs
|
<Tabs
|
||||||
value={value}
|
value={value}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
aria-label={t('core:basic_tabs_example', {
|
|
||||||
postProcess: 'capitalizeFirstChar',
|
|
||||||
})}
|
|
||||||
variant={'fullWidth'}
|
variant={'fullWidth'}
|
||||||
scrollButtons="auto"
|
scrollButtons="auto"
|
||||||
allowScrollButtonsMobile
|
allowScrollButtonsMobile
|
||||||
|
@ -247,9 +247,6 @@ export const ManageMembers = ({
|
|||||||
<Tabs
|
<Tabs
|
||||||
value={value}
|
value={value}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
aria-label={t('core:basic_tabs_example', {
|
|
||||||
postProcess: 'capitalizeFirstChar',
|
|
||||||
})}
|
|
||||||
variant="scrollable" // Make tabs scrollable
|
variant="scrollable" // Make tabs scrollable
|
||||||
scrollButtons="auto" // Show scroll buttons automatically
|
scrollButtons="auto" // Show scroll buttons automatically
|
||||||
allowScrollButtonsMobile // Show scroll buttons on mobile as well
|
allowScrollButtonsMobile // Show scroll buttons on mobile as well
|
||||||
|
@ -45,6 +45,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
|||||||
const [nodeInfos, setNodeInfos] = useState({});
|
const [nodeInfos, setNodeInfos] = useState({});
|
||||||
const [openSnack, setOpenSnack] = useState(false);
|
const [openSnack, setOpenSnack] = useState(false);
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
|
const [adminInfo, setAdminInfo] = useState({});
|
||||||
const { isShow: isShowNext, onOk, show: showNext } = useModal();
|
const { isShow: isShowNext, onOk, show: showNext } = useModal();
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { t } = useTranslation([
|
const { t } = useTranslation([
|
||||||
@ -86,9 +87,8 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
|||||||
|
|
||||||
const getName = async (address) => {
|
const getName = async (address) => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const url = `${getBaseApiReact()}/names/primary/${address}`;
|
||||||
`${getBaseApiReact()}/names/primary/${address}`
|
const response = await fetch(url);
|
||||||
);
|
|
||||||
const nameData = await response.json();
|
const nameData = await response.json();
|
||||||
if (nameData?.name) {
|
if (nameData?.name) {
|
||||||
setNames((prev) => {
|
setNames((prev) => {
|
||||||
@ -161,20 +161,6 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
|||||||
return address;
|
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 () => {
|
const getNodeInfos = async () => {
|
||||||
try {
|
try {
|
||||||
const url = `${getBaseApiReact()}/admin/status`;
|
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) => {
|
const addMintingAccount = useCallback(async (val) => {
|
||||||
try {
|
try {
|
||||||
setIsLoading(true);
|
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(() => {
|
useEffect(() => {
|
||||||
getNodeInfos();
|
getNodeInfos();
|
||||||
getMintingAccounts();
|
getMintingAccounts();
|
||||||
@ -924,6 +865,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
|||||||
<StatCard label="Tier Share Per Block" value="13%" />
|
<StatCard label="Tier Share Per Block" value="13%" />
|
||||||
<StatCard label="Est. Reward Per Block" value="0.00506494 QORT" />
|
<StatCard label="Est. Reward Per Block" value="0.00506494 QORT" />
|
||||||
<StatCard label="Est. Reward Per Day" value="6.00782338 QORT" />
|
<StatCard label="Est. Reward Per Day" value="6.00782338 QORT" />
|
||||||
|
{/* <StatCard label="AdminInfo" value={adminInfo} /> */}
|
||||||
</Grid>
|
</Grid>
|
||||||
</Paper>
|
</Paper>
|
||||||
</Container>
|
</Container>
|
||||||
|
@ -47,9 +47,6 @@ export const Tutorials = () => {
|
|||||||
}}
|
}}
|
||||||
value={multiNumber}
|
value={multiNumber}
|
||||||
onChange={(e, value) => setMultiNumber(value)}
|
onChange={(e, value) => setMultiNumber(value)}
|
||||||
aria-label={t('core:basic_tabs_example', {
|
|
||||||
postProcess: 'capitalizeFirstChar',
|
|
||||||
})}
|
|
||||||
>
|
>
|
||||||
{openTutorialModal?.multi?.map((item, index) => {
|
{openTutorialModal?.multi?.map((item, index) => {
|
||||||
return (
|
return (
|
||||||
|
@ -116,7 +116,6 @@
|
|||||||
"apps_official": "offizielle Apps",
|
"apps_official": "offizielle Apps",
|
||||||
"attachment": "Anhang",
|
"attachment": "Anhang",
|
||||||
"balance": "Gleichgewicht:",
|
"balance": "Gleichgewicht:",
|
||||||
"basic_tabs_example": "Basic Tabs Beispiel",
|
|
||||||
"category": "Kategorie",
|
"category": "Kategorie",
|
||||||
"category_other": "Kategorien",
|
"category_other": "Kategorien",
|
||||||
"chat": "Chat",
|
"chat": "Chat",
|
||||||
|
@ -116,7 +116,6 @@
|
|||||||
"apps_official": "official Apps",
|
"apps_official": "official Apps",
|
||||||
"attachment": "attachment",
|
"attachment": "attachment",
|
||||||
"balance": "balance:",
|
"balance": "balance:",
|
||||||
"basic_tabs_example": "basic tabs example",
|
|
||||||
"category": "category",
|
"category": "category",
|
||||||
"category_other": "categories",
|
"category_other": "categories",
|
||||||
"chat": "chat",
|
"chat": "chat",
|
||||||
|
@ -116,7 +116,6 @@
|
|||||||
"apps_official": "aplicaciones oficiales",
|
"apps_official": "aplicaciones oficiales",
|
||||||
"attachment": "adjunto",
|
"attachment": "adjunto",
|
||||||
"balance": "balance:",
|
"balance": "balance:",
|
||||||
"basic_tabs_example": "Ejemplo de pestañas básicas",
|
|
||||||
"category": "categoría",
|
"category": "categoría",
|
||||||
"category_other": "categorías",
|
"category_other": "categorías",
|
||||||
"chat": "charlar",
|
"chat": "charlar",
|
||||||
|
@ -116,7 +116,6 @@
|
|||||||
"apps_official": "Applications officielles",
|
"apps_official": "Applications officielles",
|
||||||
"attachment": "pièce jointe",
|
"attachment": "pièce jointe",
|
||||||
"balance": "équilibre:",
|
"balance": "équilibre:",
|
||||||
"basic_tabs_example": "Exemple de base des onglets",
|
|
||||||
"category": "catégorie",
|
"category": "catégorie",
|
||||||
"category_other": "catégories",
|
"category_other": "catégories",
|
||||||
"chat": "chat",
|
"chat": "chat",
|
||||||
|
@ -116,7 +116,6 @@
|
|||||||
"apps_official": "app ufficiali",
|
"apps_official": "app ufficiali",
|
||||||
"attachment": "allegato",
|
"attachment": "allegato",
|
||||||
"balance": "bilancio:",
|
"balance": "bilancio:",
|
||||||
"basic_tabs_example": "esempio di schede base",
|
|
||||||
"category": "categoria",
|
"category": "categoria",
|
||||||
"category_other": "categorie",
|
"category_other": "categorie",
|
||||||
"chat": "chat",
|
"chat": "chat",
|
||||||
|
@ -116,7 +116,6 @@
|
|||||||
"apps_official": "公式アプリ",
|
"apps_official": "公式アプリ",
|
||||||
"attachment": "添付ファイル",
|
"attachment": "添付ファイル",
|
||||||
"balance": "バランス:",
|
"balance": "バランス:",
|
||||||
"basic_tabs_example": "基本的なタブの例",
|
|
||||||
"category": "カテゴリ",
|
"category": "カテゴリ",
|
||||||
"category_other": "カテゴリ",
|
"category_other": "カテゴリ",
|
||||||
"chat": "チャット",
|
"chat": "チャット",
|
||||||
|
@ -116,7 +116,6 @@
|
|||||||
"apps_official": "официальные приложения",
|
"apps_official": "официальные приложения",
|
||||||
"attachment": "вложение",
|
"attachment": "вложение",
|
||||||
"balance": "баланс:",
|
"balance": "баланс:",
|
||||||
"basic_tabs_example": "Основные вкладки",
|
|
||||||
"category": "категория",
|
"category": "категория",
|
||||||
"category_other": "категории",
|
"category_other": "категории",
|
||||||
"chat": "чат",
|
"chat": "чат",
|
||||||
|
@ -116,7 +116,6 @@
|
|||||||
"apps_official": "官方应用程序",
|
"apps_official": "官方应用程序",
|
||||||
"attachment": "依恋",
|
"attachment": "依恋",
|
||||||
"balance": "平衡:",
|
"balance": "平衡:",
|
||||||
"basic_tabs_example": "基本标签示例",
|
|
||||||
"category": "类别",
|
"category": "类别",
|
||||||
"category_other": "类别",
|
"category_other": "类别",
|
||||||
"chat": "聊天",
|
"chat": "聊天",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user