mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 17:39:03 +08:00
fix: tab in license page aligned properly (#4006)
Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
parent
e58ecff19b
commit
84f2885533
@ -7,14 +7,14 @@ import ApplyLicenseForm from './ApplyLicenseForm';
|
|||||||
import ListLicenses from './ListLicenses';
|
import ListLicenses from './ListLicenses';
|
||||||
|
|
||||||
function Licenses(): JSX.Element {
|
function Licenses(): JSX.Element {
|
||||||
const { t } = useTranslation(['licenses']);
|
const { t, ready: translationsReady } = useTranslation(['licenses']);
|
||||||
const { data, isError, isLoading, refetch } = useLicense();
|
const { data, isError, isLoading, refetch } = useLicense();
|
||||||
|
|
||||||
if (isError || data?.error) {
|
if (isError || data?.error) {
|
||||||
return <Typography>{data?.error}</Typography>;
|
return <Typography>{data?.error}</Typography>;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isLoading || data?.payload === undefined) {
|
if (isLoading || data?.payload === undefined || !translationsReady) {
|
||||||
return <Spinner tip={t('loading_licenses')} height="90vh" />;
|
return <Spinner tip={t('loading_licenses')} height="90vh" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user