remove title in TopBar and add style scrollbar in App
This commit is contained in:
@ -53,29 +53,29 @@ export default function TopBar({ onRegister, username }: TopBarProps) {
|
||||
navigate('/');
|
||||
};
|
||||
|
||||
const getPageTitle = () => {
|
||||
if (isLoginPage) {
|
||||
return 'Вход';
|
||||
}
|
||||
if (isLaunchPage) {
|
||||
return 'Запуск';
|
||||
}
|
||||
if (isVersionsExplorerPage) {
|
||||
if (activePage === 'versions') {
|
||||
return 'Версии';
|
||||
}
|
||||
if (activePage === 'profile') {
|
||||
return 'Профиль';
|
||||
}
|
||||
if (activePage === 'shop') {
|
||||
return 'Магазин';
|
||||
}
|
||||
if (activePage === 'marketplace') {
|
||||
return 'Рынок';
|
||||
}
|
||||
}
|
||||
return 'Неизвестная страница';
|
||||
};
|
||||
// const getPageTitle = () => {
|
||||
// if (isLoginPage) {
|
||||
// return 'Вход';
|
||||
// }
|
||||
// if (isLaunchPage) {
|
||||
// return 'Запуск';
|
||||
// }
|
||||
// if (isVersionsExplorerPage) {
|
||||
// if (activePage === 'versions') {
|
||||
// return 'Версии';
|
||||
// }
|
||||
// if (activePage === 'profile') {
|
||||
// return 'Профиль';
|
||||
// }
|
||||
// if (activePage === 'shop') {
|
||||
// return 'Магазин';
|
||||
// }
|
||||
// if (activePage === 'marketplace') {
|
||||
// return 'Рынок';
|
||||
// }
|
||||
// }
|
||||
// return 'Неизвестная страница';
|
||||
// };
|
||||
|
||||
// Функция для получения количества монет
|
||||
const fetchCoinsData = async () => {
|
||||
@ -266,12 +266,12 @@ export default function TopBar({ onRegister, username }: TopBarProps) {
|
||||
WebkitAppRegion: 'drag',
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
{/* <Typography
|
||||
variant="h6"
|
||||
sx={{ color: 'white', fontFamily: 'Benzin-Bold' }}
|
||||
>
|
||||
{getPageTitle()}
|
||||
</Typography>
|
||||
</Typography> */}
|
||||
</Box>
|
||||
{/* Правая часть со всеми кнопками */}
|
||||
<Box
|
||||
|
||||
Reference in New Issue
Block a user