Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
c7f4dc4f
Commit
c7f4dc4f
authored
Nov 01, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the new usp icon issue
parent
25066b6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
UspSlider.tsx
src/components/pages/dashboard/UspSlider.tsx
+4
-2
No files found.
src/components/pages/dashboard/UspSlider.tsx
View file @
c7f4dc4f
...
@@ -9,15 +9,17 @@ interface UspItem {
...
@@ -9,15 +9,17 @@ interface UspItem {
title
:
string
;
title
:
string
;
description
:
string
;
description
:
string
;
icon
:
string
;
icon
:
string
;
icon_url
?:
string
;
}
}
export
default
function
UspSlider
({
uspData
}:
{
uspData
:
{
title
:
string
;
description
:
string
;
icon
:
string
}
[]
})
{
export
default
function
UspSlider
({
uspData
}:
{
uspData
:
UspItem
[]
})
{
const
[
items
,
setItems
]
=
useState
<
UspItem
[]
>
([]);
const
[
items
,
setItems
]
=
useState
<
UspItem
[]
>
([]);
const
containerRef
=
useRef
<
HTMLDivElement
>
(
null
);
const
containerRef
=
useRef
<
HTMLDivElement
>
(
null
);
const
x
=
useMotionValue
(
0
);
const
x
=
useMotionValue
(
0
);
console
.
log
(
uspData
);
// Duplicate the data for seamless loop
// Duplicate the data for seamless loop
useEffect
(()
=>
{
useEffect
(()
=>
{
setItems
([...
uspData
,
...
uspData
,
...
uspData
]);
setItems
([...
uspData
,
...
uspData
,
...
uspData
]);
...
@@ -65,7 +67,7 @@ export default function UspSlider({ uspData }: { uspData: { title: string; descr
...
@@ -65,7 +67,7 @@ export default function UspSlider({ uspData }: { uspData: { title: string; descr
>
>
<
Image
<
Image
src=
{
item
.
icon
||
"/assets/images/fallback.png"
}
src=
{
item
.
icon
_url
||
"/assets/images/fallback.png"
}
alt=
{
item
.
title
}
alt=
{
item
.
title
}
width=
{
66
}
width=
{
66
}
height=
{
66
}
height=
{
66
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment