Skip to content

Commit

Permalink
chore: update2
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosoul committed Nov 14, 2024
1 parent 51db08a commit 56da15c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Color.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useRef } from 'react';
import styled from 'styled-components';
import scrollIntoView from 'scroll-into-view-if-needed';
import scrollIntoView from 'smooth-scroll-into-view-if-needed';
import { getCorrectTextColor } from '../utils';

import CirclePercent from './CirclePercent';
Expand Down Expand Up @@ -118,7 +118,7 @@ const Color = ({
CMYK,
RGB,
intro,
currColorRGB
currColorRGB,
}) => {
const [r, g, b] = RGB;
const [c, m, y, k] = CMYK;
Expand All @@ -129,7 +129,7 @@ const Color = ({
scrollIntoView(colorEle.current, {
behavior: 'smooth',
block: 'center',
scrollMode: 'if-needed'
scrollMode: 'if-needed',
});
}
}, [isCurr]);
Expand Down

0 comments on commit 56da15c

Please sign in to comment.