We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c10c38e commit f0bb5ddCopy full SHA for f0bb5dd
client/src/components/OfflineWarning/offline-warning.tsx
@@ -1,5 +1,6 @@
1
import React from 'react';
2
import { Trans, useTranslation } from 'react-i18next';
3
+import { Alert, Spacer } from '@freecodecamp/ui';
4
5
import './offline-warning.css';
6
@@ -43,8 +44,10 @@ function OfflineWarning({
43
44
45
return showWarning ? (
46
<>
- <div className='offline-warning alert-info'>{message}</div>
47
- <div style={{ height: `38px` }} />
+ <Alert variant='info' className='offline-warning'>
48
+ {message}
49
+ </Alert>
50
+ <Spacer size='m' />
51
</>
52
) : null;
53
}
0 commit comments