mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix input defocus on user input
This commit is contained in:
parent
e77832115c
commit
c1b3444ae1
@ -1,7 +1,6 @@
|
||||
import React, { ReactElement, ReactNode } from 'react'
|
||||
import { Tab, Tabs as ReactTabs, TabList, TabPanel } from 'react-tabs'
|
||||
import styles from './Tabs.module.css'
|
||||
import shortid from 'shortid'
|
||||
|
||||
interface TabsItem {
|
||||
title: string
|
||||
@ -19,14 +18,14 @@ export default function Tabs({
|
||||
<ReactTabs className={`${className && className}`}>
|
||||
<TabList className={styles.tabList}>
|
||||
{items.map((item) => (
|
||||
<Tab className={styles.tab} key={shortid.generate()}>
|
||||
<Tab className={styles.tab} key={item.title}>
|
||||
{item.title}
|
||||
</Tab>
|
||||
))}
|
||||
</TabList>
|
||||
<div className={styles.tabContent}>
|
||||
{items.map((item) => (
|
||||
<TabPanel key={shortid.generate()}>{item.content}</TabPanel>
|
||||
<TabPanel key={item.title}>{item.content}</TabPanel>
|
||||
))}
|
||||
</div>
|
||||
</ReactTabs>
|
||||
|
Loading…
Reference in New Issue
Block a user