Add skeleton loader in footer

This commit is contained in:
Ariful Alam 2022-07-25 19:11:08 +06:00
parent 0f9ceb0d98
commit d87f8986ee

View File

@ -18,6 +18,7 @@ import {
setupHotjar,
tooManyRequestError,
sanitizeConfig,
skeleton,
} from '../helpers/utils';
import { HelmetProvider } from 'react-helmet-async';
import PropTypes from 'prop-types';
@ -208,10 +209,15 @@ const GitProfile = ({ config }) => {
rel="noreferrer"
>
<div>
<p className="font-mono text-sm">
Made with{' '}
<span className="text-primary">GitProfile</span> and
</p>
{loading ? (
skeleton({ width: 'w-52', height: 'h-6' })
) : (
<p className="font-mono text-sm">
Made with{' '}
<span className="text-primary">GitProfile</span> and
</p>
)}
</div>
</a>
</div>