Skip to content

Commit c000f18

Browse files
committed
Removes loading text on giveaway page
1 parent 3fda93d commit c000f18

1 file changed

Lines changed: 7 additions & 35 deletions

File tree

src/pages/dashboard/giveaway/index.tsx

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -564,21 +564,13 @@ const GiveawayPage: React.FC = () => {
564564
}> = ({ icon, title, valueText, description }) => (
565565
<motion.div
566566
className="dashboard-stat-card"
567-
initial={{ opacity: 0, y: 20 }}
568-
whileInView={{ opacity: 1, y: 0 }}
569-
transition={{ duration: 0.5 }}
570-
viewport={{ once: true }}
571567
whileHover={{ scale: 1.02 }}
572568
>
573569
<div className="dashboard-stat-icon">{icon}</div>
574570
<div className="dashboard-stat-content">
575571
<h3 className="dashboard-stat-title">{title}</h3>
576572
<div className="dashboard-stat-value">
577-
<SlotCounter
578-
value={valueText}
579-
autoAnimationStart={true}
580-
duration={1}
581-
/>
573+
<SlotCounter value={valueText} duration={1} />
582574
</div>
583575
<p className="dashboard-stat-description">{description}</p>
584576
</div>
@@ -725,12 +717,7 @@ const GiveawayPage: React.FC = () => {
725717
</div>
726718

727719
<div className="dashboard-main-content">
728-
<motion.section
729-
className="dashboard-hero"
730-
initial={{ opacity: 0, y: 10 }}
731-
animate={{ opacity: 1, y: 0 }}
732-
transition={{ duration: 0.8 }}
733-
>
720+
<section className="dashboard-hero">
734721
<div className="hero-content">
735722
<h1 className="dashboard-title">
736723
🎁 <span className="highlight">Giveaway</span>
@@ -739,16 +726,10 @@ const GiveawayPage: React.FC = () => {
739726
Participate in exclusive giveaways and win exciting prizes!
740727
</p>
741728
</div>
742-
</motion.section>
729+
</section>
743730

744731
{/* Giveaway Stats Grid */}
745-
<motion.section
746-
className="dashboard-stats-section grid grid-cols-1 md:grid-cols-3 gap-4 flex-wrap"
747-
initial={{ opacity: 0, y: 10 }}
748-
whileInView={{ opacity: 1 }}
749-
transition={{ duration: 0.6 }}
750-
viewport={{ once: true }}
751-
>
732+
<section className="dashboard-stats-section grid grid-cols-1 md:grid-cols-3 gap-4 flex-wrap">
752733
<StatCard
753734
icon="⏳"
754735
title="Next Giveaway"
@@ -767,16 +748,10 @@ const GiveawayPage: React.FC = () => {
767748
valueText="3"
768749
description="Winners per giveaway"
769750
/>
770-
</motion.section>
751+
</section>
771752

772753
{/* Giveaway Leaderboard */}
773-
<motion.section
774-
className="giveaway-leaderboard-section"
775-
initial={{ opacity: 0, y: 20 }}
776-
whileInView={{ opacity: 1, y: 0 }}
777-
transition={{ duration: 0.6, delay: 0.2 }}
778-
viewport={{ once: true }}
779-
>
754+
<section className="giveaway-leaderboard-section">
780755
<div className="giveaway-leaderboard-header">
781756
<h2 className="giveaway-leaderboard-title">
782757
🎁 Giveaway <span className="highlight">Leaderboard</span>
@@ -796,9 +771,6 @@ const GiveawayPage: React.FC = () => {
796771
<motion.div
797772
key={entry.rank}
798773
className={`giveaway-leaderboard-card rank-${entry.rank <= 3 ? entry.rank : "other"}`}
799-
initial={{ opacity: 0, y: 20 }}
800-
animate={{ opacity: 1, y: 0 }}
801-
transition={{ duration: 0.5, delay: index * 0.1 }}
802774
whileHover={{ scale: 1.02, y: -5 }}
803775
>
804776
<div className="giveaway-rank-badge">
@@ -850,7 +822,7 @@ const GiveawayPage: React.FC = () => {
850822
))}
851823
</div>
852824
)}
853-
</motion.section>
825+
</section>
854826
</div>
855827
</div>
856828
</Layout>

0 commit comments

Comments
 (0)