refactor(client): update OfflineWarning to use Alert and Spacer components (#60871)

This commit is contained in:
Naman Khandelwal 2025-06-16 00:57:56 +05:30 committed by GitHub
parent c10c38e633
commit f0bb5dd740
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
import React from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { Alert, Spacer } from '@freecodecamp/ui';
import './offline-warning.css';
@ -43,8 +44,10 @@ function OfflineWarning({
return showWarning ? (
<>
<div className='offline-warning alert-info'>{message}</div>
<div style={{ height: `38px` }} />
<Alert variant='info' className='offline-warning'>
{message}
</Alert>
<Spacer size='m' />
</>
) : null;
}