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 React, { ReactElement, ReactNode } from 'react'
|
||||||
import { Tab, Tabs as ReactTabs, TabList, TabPanel } from 'react-tabs'
|
import { Tab, Tabs as ReactTabs, TabList, TabPanel } from 'react-tabs'
|
||||||
import styles from './Tabs.module.css'
|
import styles from './Tabs.module.css'
|
||||||
import shortid from 'shortid'
|
|
||||||
|
|
||||||
interface TabsItem {
|
interface TabsItem {
|
||||||
title: string
|
title: string
|
||||||
@ -19,14 +18,14 @@ export default function Tabs({
|
|||||||
<ReactTabs className={`${className && className}`}>
|
<ReactTabs className={`${className && className}`}>
|
||||||
<TabList className={styles.tabList}>
|
<TabList className={styles.tabList}>
|
||||||
{items.map((item) => (
|
{items.map((item) => (
|
||||||
<Tab className={styles.tab} key={shortid.generate()}>
|
<Tab className={styles.tab} key={item.title}>
|
||||||
{item.title}
|
{item.title}
|
||||||
</Tab>
|
</Tab>
|
||||||
))}
|
))}
|
||||||
</TabList>
|
</TabList>
|
||||||
<div className={styles.tabContent}>
|
<div className={styles.tabContent}>
|
||||||
{items.map((item) => (
|
{items.map((item) => (
|
||||||
<TabPanel key={shortid.generate()}>{item.content}</TabPanel>
|
<TabPanel key={item.title}>{item.content}</TabPanel>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</ReactTabs>
|
</ReactTabs>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user