Skip to content

Commit b8f14c0

Browse files
committed
fix: remove unnecessary keys from loading and icon spans in Switch component
1 parent b263a1d commit b8f14c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Shared/Components/Switch/Switch.component.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const Switch = ({
6262
layoutId={`${name}-loader`}
6363
className="flex-grow-1 h-100 dc__fill-available-space dc__no-shrink"
6464
>
65-
<Icon key="progressing" name="ic-circle-loader" color={LOADING_COLOR_MAP[variant]} size={null} />
65+
<Icon name="ic-circle-loader" color={LOADING_COLOR_MAP[variant]} size={null} />
6666
</motion.span>
6767
) : (
6868
<motion.span
@@ -74,7 +74,6 @@ const Switch = ({
7474
<AnimatePresence>
7575
{showIndeterminateIcon ? (
7676
<motion.span
77-
key="dash"
7877
className={`${INDETERMINATE_ICON_WIDTH_MAP[size]} h-2 br-4 dc__no-shrink bg__white`}
7978
initial={{ scale: 0, opacity: 0 }}
8079
animate={{ scale: 1, opacity: 1 }}
@@ -83,7 +82,6 @@ const Switch = ({
8382
) : (
8483
iconName && (
8584
<motion.span
86-
key="icon"
8785
className="icon-dim-12 flex dc__fill-available-space dc__no-shrink"
8886
initial={{ scale: 0.8, opacity: 0 }}
8987
animate={{ scale: 1, opacity: 1 }}

0 commit comments

Comments
 (0)