@@ -23,6 +23,7 @@ import {
2323} from 'lucide-react' ;
2424import { MainLayout } from '../../components/layout/MainLayout' ;
2525import { CommentBox } from '../../components/CommentBox' ;
26+ import { Loader } from '../../components/Loader' ;
2627
2728// ── Types ──────────────────────────────────────────────────────────────────────
2829
@@ -603,7 +604,7 @@ export function AdminPostView() {
603604 < MainLayout >
604605 < div className = "flex-grow flex items-center justify-center bg-white py-20" >
605606 < div className = "text-center" >
606- < div className = "w-12 h-12 border-4 border-[#ff9900] border-t-transparent rounded-full animate-spin mx-auto mb-4" />
607+ < Loader size = "lg" color = "orange" className = " mx-auto mb-4" />
607608 < p className = "text-gray-600 font-semibold" > Loading post…</ p >
608609 </ div >
609610 </ div >
@@ -921,7 +922,7 @@ export function AdminPostView() {
921922 className = "inline-flex items-center gap-2 text-xs font-semibold text-white bg-zinc-900 hover:bg-zinc-800 px-4 py-2 rounded-lg transition-all duration-200 disabled:opacity-40 disabled:cursor-not-allowed disabled:pointer-events-none cursor-pointer"
922923 >
923924 { acting ? (
924- < span className = "w-3.5 h-3.5 border-2 border- white border-t-transparent rounded-full animate-spin " />
925+ < Loader size = "xs" color = " white" />
925926 ) : < MessageSquare className = "w-3.5 h-3.5" /> }
926927 Post Comment
927928 </ button >
@@ -950,7 +951,7 @@ export function AdminPostView() {
950951 className = "inline-flex items-center gap-2 text-xs font-semibold text-white bg-amber-500 hover:bg-amber-600 px-4 py-2 rounded-lg transition-all duration-200 disabled:opacity-40 disabled:cursor-not-allowed disabled:pointer-events-none cursor-pointer"
951952 >
952953 { acting ? (
953- < span className = "w-3.5 h-3.5 border-2 border- white border-t-transparent rounded-full animate-spin " />
954+ < Loader size = "xs" color = " white" />
954955 ) : btn . icon }
955956 { btn . label }
956957 </ button >
@@ -1000,7 +1001,7 @@ export function AdminPostView() {
10001001 className = { `inline-flex items-center gap-2 text-xs font-semibold text-white ${ buttonColorClass } px-4 py-2 rounded-lg transition-all duration-200 disabled:opacity-40 disabled:cursor-not-allowed disabled:pointer-events-none cursor-pointer` }
10011002 >
10021003 { acting ? (
1003- < span className = "w-3.5 h-3.5 border-2 border- white border-t-transparent rounded-full animate-spin " />
1004+ < Loader size = "xs" color = " white" />
10041005 ) : btn . icon }
10051006 { btn . label }
10061007 </ button >
0 commit comments