Skip to content

Commit affdc43

Browse files
authored
Merge pull request #1472 from steam-bell-92/Temp
Removing Loading Text
2 parents c846ef5 + c000f18 commit affdc43

1 file changed

Lines changed: 7 additions & 36 deletions

File tree

src/pages/dashboard/giveaway/index.tsx

Lines changed: 7 additions & 36 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>
@@ -788,7 +763,6 @@ const GiveawayPage: React.FC = () => {
788763

789764
{loading ? (
790765
<div className="giveaway-loading">
791-
<div className="loading-spinner">Loading...</div>
792766
<p>Fetching leaderboard data...</p>
793767
</div>
794768
) : (
@@ -797,9 +771,6 @@ const GiveawayPage: React.FC = () => {
797771
<motion.div
798772
key={entry.rank}
799773
className={`giveaway-leaderboard-card rank-${entry.rank <= 3 ? entry.rank : "other"}`}
800-
initial={{ opacity: 0, y: 20 }}
801-
animate={{ opacity: 1, y: 0 }}
802-
transition={{ duration: 0.5, delay: index * 0.1 }}
803774
whileHover={{ scale: 1.02, y: -5 }}
804775
>
805776
<div className="giveaway-rank-badge">
@@ -851,7 +822,7 @@ const GiveawayPage: React.FC = () => {
851822
))}
852823
</div>
853824
)}
854-
</motion.section>
825+
</section>
855826
</div>
856827
</div>
857828
</Layout>

0 commit comments

Comments
 (0)