Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Aug 31, 2023
1 parent b3a4d65 commit e69525c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/refactor/ui/components/gallery/Gallery.tsx
@@ -1,7 +1,7 @@
import React, { useCallback, useState } from 'react';
import { GalleryItem } from './GalleryItem';
import { Tab } from './Tab';
import { TabsInterface } from '../../../masa';
import { GalleryMetadata, TabsInterface } from '../../../masa';

export interface GalleryProps {
tabs: TabsInterface[];
Expand All @@ -20,7 +20,7 @@ export const Gallery = ({ tabs, wrapperClassName }: GalleryProps) => {
<header className="tabs-header">
<nav className="tabs-wrapper">
<ul className="tabs" data-active-tab={activeTab}>
{tabs.map((tab, index) => (
{tabs.map((tab: TabsInterface, index: number) => (
<li key={`list-header-tab-${tab.title}`}>
<Tab
title={tab.title}
Expand All @@ -33,7 +33,7 @@ export const Gallery = ({ tabs, wrapperClassName }: GalleryProps) => {
</nav>
</header>
<section className={`tab-content ${wrapperClassName}`}>
{tabs[activeTab].items.map((tab) => {
{tabs[activeTab].items.map((tab: GalleryMetadata) => {
return <GalleryItem {...tab} key={tab.name} />;
})}
</section>
Expand Down

0 comments on commit e69525c

Please sign in to comment.