update banner-img

This commit is contained in:
somrat sorkar
2023-07-24 10:02:33 +06:00
parent 0d3562c1bf
commit abed7aa2a8
14 changed files with 52 additions and 60 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ const Search = ({ searchList }: Props) => {
{humanize(category)}
{index !== item.data.categories.length - 1 && ", "}
</a>
)
),
)}
</li>
</ul>
+4 -4
View File
@@ -22,14 +22,14 @@ const Tabs = ({ children }: { children: React.ReactElement }) => {
const tabLinks = Array.from(
children.props.value.matchAll(
/<div\s+data-name="([^"]+)"[^>]*>(.*?)<\/div>/gs
/<div\s+data-name="([^"]+)"[^>]*>(.*?)<\/div>/gs,
),
(match: RegExpMatchArray) => ({ name: match[1], children: match[0] })
(match: RegExpMatchArray) => ({ name: match[1], children: match[0] }),
);
const handleKeyDown = (
event: React.KeyboardEvent<EventTarget>,
index: number
index: number,
) => {
if (event.key === "Enter" || event.key === " ") {
setActive(index);
@@ -57,7 +57,7 @@ const Tabs = ({ children }: { children: React.ReactElement }) => {
>
{item.name}
</li>
)
),
)}
</ul>
{tabLinks.map((item: { name: string; children: string }, i: number) => (