Skip to content

Commit

Permalink
fix: tab in license page aligned properly (#4006)
Browse files Browse the repository at this point in the history
Co-authored-by: Palash Gupta <palashgdev@gmail.com>
  • Loading branch information
joemiltonm and palashgdev authored Nov 21, 2023
1 parent e58ecff commit 84f2885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/container/Licenses/index.tsx
Original file line number Diff line number Diff line change
@@ -7,14 +7,14 @@ import ApplyLicenseForm from './ApplyLicenseForm';
import ListLicenses from './ListLicenses';

function Licenses(): JSX.Element {
const { t } = useTranslation(['licenses']);
const { t, ready: translationsReady } = useTranslation(['licenses']);
const { data, isError, isLoading, refetch } = useLicense();

if (isError || data?.error) {
return <Typography>{data?.error}</Typography>;
}

if (isLoading || data?.payload === undefined) {
if (isLoading || data?.payload === undefined || !translationsReady) {
return <Spinner tip={t('loading_licenses')} height="90vh" />;
}

0 comments on commit 84f2885

Please sign in to comment.