Skip to content

Commit 384efcb

Browse files
committed
chore: fix wrap issue flagged in ci
1 parent d4c088a commit 384efcb

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

src/components/FeaturedSection/FeaturedSection.tsx

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,37 @@ import {
1212
Text,
1313
useBreakpointValue,
1414
Wrap,
15-
} from "@chakra-ui/react";
16-
import Image from "next/image";
17-
import { BsClockFill } from "react-icons/bs";
15+
} from '@chakra-ui/react'
16+
import Image from 'next/image'
17+
import { BsClockFill } from 'react-icons/bs'
1818

1919
interface BlogProps {
20-
title: string;
21-
href: string;
22-
media?: string;
23-
description: string;
24-
readingTime: string;
20+
title: string
21+
href: string
22+
media?: string
23+
description: string
24+
readingTime: string
2525
author?: {
26-
name: string;
27-
href: string;
28-
};
29-
tags?: string[];
30-
blurHash?: string;
31-
isPriority?: boolean;
32-
index?: number;
26+
name: string
27+
href: string
28+
}
29+
tags?: string[]
30+
blurHash?: string
31+
isPriority?: boolean
32+
index?: number
3333
}
3434

3535
interface FeaturedSectionProps {
36-
posts: BlogProps[];
36+
posts: BlogProps[]
3737
}
3838

3939
export const FeaturedSection = ({ posts }: FeaturedSectionProps) => {
40-
const isMobile = useBreakpointValue({ sm: true, md: false });
40+
const isMobile = useBreakpointValue({ sm: true, md: false })
4141

42-
const [featured, ...rest] = posts;
42+
const [featured, ...rest] = posts
4343

4444
if (isMobile) {
45-
return null;
45+
return null
4646
}
4747

4848
return (
@@ -56,12 +56,12 @@ export const FeaturedSection = ({ posts }: FeaturedSectionProps) => {
5656
<LinkBox
5757
as="article"
5858
h="full"
59-
bg={{ sm: mode("white", "gray.700") }}
60-
shadow={{ sm: "base" }}
61-
rounded={{ sm: "md" }}
59+
bg={{ sm: mode('white', 'gray.700') }}
60+
shadow={{ sm: 'base' }}
61+
rounded={{ sm: 'md' }}
6262
overflow="hidden"
6363
transition="all 0.2s"
64-
_hover={{ shadow: { sm: "lg" } }}
64+
_hover={{ shadow: { sm: 'lg' } }}
6565
>
6666
<Box position="relative">
6767
<Box minHeight="360px">
@@ -74,19 +74,19 @@ export const FeaturedSection = ({ posts }: FeaturedSectionProps) => {
7474
quality={72}
7575
priority
7676
placeholder={
77-
process.env.NODE_ENV === "production" ? "blur" : "empty"
77+
process.env.NODE_ENV === 'production' ? 'blur' : 'empty'
7878
}
7979
/>
8080
)}
8181
</Box>
8282
</Box>
83-
<Flex direction="column" px={{ sm: "6" }} py="5" h="full">
83+
<Flex direction="column" px={{ sm: '6' }} py="5" h="full">
8484
<Heading as="h3" size="sm" mb="2" lineHeight="base">
8585
<LinkOverlay href={featured.href}>{featured.title}</LinkOverlay>
8686
</Heading>
8787
{featured.tags && (
8888
<Box mb={4}>
89-
<Wrap shouldWrapChildren wrap="wrap">
89+
<Wrap shouldWrapChildren>
9090
{featured.tags.map((tag) => (
9191
<Tag fontSize="xs" key={tag}>
9292
{tag}
@@ -95,7 +95,7 @@ export const FeaturedSection = ({ posts }: FeaturedSectionProps) => {
9595
</Wrap>
9696
</Box>
9797
)}
98-
<Text noOfLines={1} mb="4" color={mode("gray.600", "gray.400")}>
98+
<Text noOfLines={1} mb="4" color={mode('gray.600', 'gray.400')}>
9999
{featured.description}
100100
</Text>
101101
<Flex>
@@ -118,12 +118,12 @@ export const FeaturedSection = ({ posts }: FeaturedSectionProps) => {
118118
<LinkBox
119119
as="article"
120120
h="full"
121-
bg={{ sm: mode("white", "gray.700") }}
122-
shadow={{ sm: "base" }}
123-
rounded={{ sm: "md" }}
121+
bg={{ sm: mode('white', 'gray.700') }}
122+
shadow={{ sm: 'base' }}
123+
rounded={{ sm: 'md' }}
124124
overflow="hidden"
125125
transition="all 0.2s"
126-
_hover={{ shadow: { sm: "lg" } }}
126+
_hover={{ shadow: { sm: 'lg' } }}
127127
>
128128
<Box position="relative">
129129
<Box height="120px">
@@ -138,14 +138,14 @@ export const FeaturedSection = ({ posts }: FeaturedSectionProps) => {
138138
priority
139139
sizes="342px"
140140
placeholder={
141-
process.env.NODE_ENV === "production" ? "blur" : "empty"
141+
process.env.NODE_ENV === 'production' ? 'blur' : 'empty'
142142
}
143143
/>
144144
)}
145145
</Box>
146146
</Box>
147-
<Flex direction="column" px={{ sm: "3" }} py="5" h="full">
148-
<Text noOfLines={3} mb="2" color={mode("gray.600", "gray.400")}>
147+
<Flex direction="column" px={{ sm: '3' }} py="5" h="full">
148+
<Text noOfLines={3} mb="2" color={mode('gray.600', 'gray.400')}>
149149
{post.description}
150150
</Text>
151151
<Flex>
@@ -165,5 +165,5 @@ export const FeaturedSection = ({ posts }: FeaturedSectionProps) => {
165165
</GridItem>
166166
))}
167167
</Grid>
168-
);
169-
};
168+
)
169+
}

0 commit comments

Comments
 (0)