refactor: convert Tab from TopBar to tsx
This commit is contained in:
parent
e0a75a6d25
commit
2376120104
|
@ -1,8 +1,13 @@
|
|||
import { XStack, Text } from 'tamagui'
|
||||
import './TopBar.css'
|
||||
import { Icon } from './Icon'
|
||||
import Icon from './Icon'
|
||||
|
||||
const Tab = ({ icon, text }) => {
|
||||
type TabProps = {
|
||||
icon: string
|
||||
text: string
|
||||
}
|
||||
|
||||
const Tab = ({ icon, text }: TabProps) => {
|
||||
const style = {
|
||||
border: 'none',
|
||||
display: 'flex',
|
Loading…
Reference in New Issue