Skip to content

Commit 5462ed0

Browse files
committed
feat(): Adding project section
1 parent 6ee0d11 commit 5462ed0

3 files changed

Lines changed: 20 additions & 6 deletions

File tree

src/components/Marquee/Marquee.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ const Marquee = ({
1313
}: MarqueeProps) => {
1414
const [isHovering, setHovering] = useState(false);
1515
const hoverProps = pauseOnHover
16-
? { onMouseEnter: () => setHovering(true), onMouseLeave: () => setHovering(false) }
16+
? {
17+
onMouseEnter: () => setHovering(true),
18+
onMouseLeave: () => setHovering(false),
19+
}
1720
: {};
1821
return (
1922
<Box

src/components/Marquee/__tests__/Marquee.test.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ describe('Marquee', () => {
1010

1111
it('should render the Marquee component', () => {
1212
const { container } = render(
13-
<Marquee repeat={40} duration={10} gap={4} pauseOnHover={true} reverse={true}>
13+
<Marquee
14+
repeat={40}
15+
duration={10}
16+
gap={4}
17+
pauseOnHover={true}
18+
reverse={true}
19+
>
1420
Test container
1521
</Marquee>,
1622
);
@@ -20,7 +26,14 @@ describe('Marquee', () => {
2026

2127
it('should render the Marquee component with vertical direction', () => {
2228
const { container } = render(
23-
<Marquee repeat={40} duration={10} gap={4} pauseOnHover={true} reverse={true} vertical={true}>
29+
<Marquee
30+
repeat={40}
31+
duration={10}
32+
gap={4}
33+
pauseOnHover={true}
34+
reverse={true}
35+
vertical={true}
36+
>
2437
Test container
2538
</Marquee>,
2639
);

src/components/WavyBackground/WavyBackground.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ const WavyBackground = ({
112112

113113
return (
114114
<div
115-
className={
116-
'flex flex-col items-center justify-center mx-auto pb-20'
117-
}
115+
className={'flex flex-col items-center justify-center mx-auto pb-20'}
118116
style={{
119117
height: '20vh',
120118
zIndex: 0,

0 commit comments

Comments
 (0)