Skip to content

Commit f0bb5dd

Browse files
authored
refactor(client): update OfflineWarning to use Alert and Spacer components (freeCodeCamp#60871)
1 parent c10c38e commit f0bb5dd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

client/src/components/OfflineWarning/offline-warning.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import { Trans, useTranslation } from 'react-i18next';
3+
import { Alert, Spacer } from '@freecodecamp/ui';
34

45
import './offline-warning.css';
56

@@ -43,8 +44,10 @@ function OfflineWarning({
4344

4445
return showWarning ? (
4546
<>
46-
<div className='offline-warning alert-info'>{message}</div>
47-
<div style={{ height: `38px` }} />
47+
<Alert variant='info' className='offline-warning'>
48+
{message}
49+
</Alert>
50+
<Spacer size='m' />
4851
</>
4952
) : null;
5053
}

0 commit comments

Comments
 (0)