mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-28 23:02:24 -05:00
refactor(client): update OfflineWarning to use Alert and Spacer components (#60871)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user