mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-19 23:16:48 +00:00
Merge branch 'main' into bug-fix
This commit is contained in:
@@ -5,7 +5,7 @@ import React, { useState } from 'react'
|
||||
* @param {*} param0
|
||||
* @returns
|
||||
*/
|
||||
const Tabs = ({ children }) => {
|
||||
const Tabs = ({ className, children }) => {
|
||||
if (!children) {
|
||||
return <></>
|
||||
}
|
||||
@@ -18,7 +18,7 @@ const Tabs = ({ children }) => {
|
||||
})
|
||||
|
||||
if (count === 1) {
|
||||
return <section className='duration-200'>
|
||||
return <section className={'duration-200 ' + className}>
|
||||
{children}
|
||||
</section>
|
||||
}
|
||||
@@ -29,7 +29,7 @@ const Tabs = ({ children }) => {
|
||||
setCurrentTab(i)
|
||||
}
|
||||
|
||||
return <div className='mb-5 bg-white dark:bg-gray-800 duration-200'>
|
||||
return <div className={'mb-5 bg-white dark:bg-gray-800 duration-200 ' + className}>
|
||||
<ul className='flex justify-center space-x-5 pb-4 dark:text-gray-400 text-gray-600'>
|
||||
{children.map((item, index) => {
|
||||
return <li key={index}
|
||||
|
||||
Reference in New Issue
Block a user