mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-27 18:40:33 +00:00
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 { XStack, Text } from 'tamagui'
|
||||||
import './TopBar.css'
|
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 = {
|
const style = {
|
||||||
border: 'none',
|
border: 'none',
|
||||||
display: 'flex',
|
display: 'flex',
|
Loading…
x
Reference in New Issue
Block a user