fix: delete custom buttons
This commit is contained in:
parent
c9d3d361af
commit
23de7820c7
|
@ -1,21 +0,0 @@
|
|||
import Icon from './Icon'
|
||||
import ReactButton from './ReactButton'
|
||||
|
||||
type IconButtonProps = {
|
||||
children: string
|
||||
icon: string
|
||||
style?: unknown
|
||||
size?: string
|
||||
fontSize?: string
|
||||
onClick?: () => void
|
||||
}
|
||||
|
||||
const IconButton = ({ icon, children, ...props }: IconButtonProps) => {
|
||||
return (
|
||||
<ReactButton {...props} icon={<Icon source={icon} />}>
|
||||
{children}
|
||||
</ReactButton>
|
||||
)
|
||||
}
|
||||
|
||||
export default IconButton
|
|
@ -1,16 +0,0 @@
|
|||
import { Button } from 'tamagui'
|
||||
import { ReactNode } from 'react'
|
||||
|
||||
type ReactButtonProps = {
|
||||
children: string
|
||||
style?: unknown
|
||||
icon?: ReactNode
|
||||
size?: string
|
||||
onClick?: () => void
|
||||
}
|
||||
|
||||
const ReactButton = ({ children, ...props }: ReactButtonProps) => {
|
||||
return <Button {...props}>{children}</Button>
|
||||
}
|
||||
|
||||
export default ReactButton
|
|
@ -1,7 +1,6 @@
|
|||
import { XStack, YStack } from 'tamagui'
|
||||
import Title from './Title'
|
||||
import SubTitle from './SubTitle'
|
||||
import IconButton from './IconButton'
|
||||
|
||||
type TitlesProps = {
|
||||
title: string
|
||||
|
@ -13,7 +12,7 @@ const Titles = ({ title, subtitle }: TitlesProps) => {
|
|||
<YStack>
|
||||
<XStack justifyContent="space-between">
|
||||
<Title color={'#09101C'}>{title}</Title>
|
||||
<IconButton
|
||||
{/* <IconButton
|
||||
style={{
|
||||
backgroundColor: 'transparent',
|
||||
border: '1px solid #DCE0E5',
|
||||
|
@ -24,7 +23,7 @@ const Titles = ({ title, subtitle }: TitlesProps) => {
|
|||
fontSize={'$5'}
|
||||
>
|
||||
Advanced Settings
|
||||
</IconButton>
|
||||
</IconButton> */}
|
||||
</XStack>
|
||||
<SubTitle color={'#09101C'}>{subtitle}</SubTitle>
|
||||
</YStack>
|
||||
|
|
Loading…
Reference in New Issue