Skip to content

Commit

Permalink
fix: Eslint aplication
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioAR committed Oct 29, 2024
1 parent 2fffe52 commit 78fae69
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
24 changes: 18 additions & 6 deletions app/app/components/utils/loadingScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
import React from 'react';
import React from 'react'

const LoadingScreen = () => {
return (
<div className="fixed inset-0 flex items-center justify-center bg-white dark:bg-gray-900">
<div className="text-center">
<svg className="animate-spin h-10 w-10 text-gray-600 dark:text-gray-300" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>
<svg
className="animate-spin h-10 w-10 text-gray-600 dark:text-gray-300"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
>
<circle
className="opacity-25"
cx="12"
cy="12"
r="10"
stroke="currentColor"
strokeWidth="4"
></circle>
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v8H4z"></path>
</svg>
<p className="mt-4 text-gray-600 dark:text-gray-300 font-inter">Loading...</p>
</div>
</div>
);
};
)
}

export default LoadingScreen;
export default LoadingScreen
4 changes: 1 addition & 3 deletions app/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ export default function HomePage() {
})()

if (!translations) {
return (
<LoadingScreen />
)
return <LoadingScreen />
}

return (
Expand Down
6 changes: 2 additions & 4 deletions app/app/user/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import loadTranslations from '../../utils/loadTranslations'
import { Footer } from '../components/footer'
import { NavBarTopPage } from '../components/navBars'
import { Header, Translations } from '../components/utils'
import LoadingScreen from '../components/utils/loadingScreen'

import Privacy from './privacy'
import Terms from './terms'
import LoadingScreen from '../components/utils/loadingScreen'

const TermsAndPrivacy = () => {
const [translations, setTranslations] = useState<Translations>()
Expand Down Expand Up @@ -47,9 +47,7 @@ const TermsAndPrivacy = () => {
}, [url])

if (!translations) {
return (
<LoadingScreen />
)
return <LoadingScreen />
}

return (
Expand Down

0 comments on commit 78fae69

Please sign in to comment.