Skip to content

Commit

Permalink
fix: loader component
Browse files Browse the repository at this point in the history
  • Loading branch information
bacpactech committed Sep 9, 2024
1 parent 92d038b commit a787e00
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/community/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import Footer from '@/components/Footer/Footer'
import UniversityCard from '@/components/universityCommunity/universityCommunityCart'
import { useGetUserSubscribedCommunityGroups } from '@/services/university-community'
import Loading from '../loading'
import Loading from '@/components/atoms/Loading'

interface CommunityType {
_id: string
Expand Down
11 changes: 11 additions & 0 deletions src/components/atoms/Loading/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default function Loading() {
return (
<div className="h-screen flex items-center justify-center">
<div className="flex justify-center items-center">
<svg width={50} height={50} viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg" className="animate-spin">
<circle cx="25" cy="25" r="20" fill="none" stroke="#6647FF" strokeWidth="5" strokeLinecap="round" strokeDasharray="80, 200" />
</svg>
</div>
</div>
)
}

0 comments on commit a787e00

Please sign in to comment.