refactor: mobile modals (#2173)

This commit is contained in:
Aman Harwara
2023-01-24 19:26:20 +05:30
committed by GitHub
parent 6af95ddfeb
commit 42db3592b6
55 changed files with 1582 additions and 1033 deletions

View File

@@ -1,3 +1,4 @@
import { classNames } from '@standardnotes/snjs'
import Tab from './Tab'
import TabList from './TabList'
import { TabState } from './useTabState'
@@ -9,11 +10,12 @@ type Props = {
}[]
state: TabState
children: React.ReactNode
className?: string
}
const TabsContainer = ({ tabs, state, children }: Props) => {
const TabsContainer = ({ tabs, state, className, children }: Props) => {
return (
<div className="overflow-hidden rounded-md border border-border">
<div className={classNames('overflow-hidden rounded-md border border-border', className)}>
<TabList state={state} className="border-b border-border">
{tabs.map(({ id, title }) => (
<Tab key={id} id={id} className="first:rounded-tl-md">