1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Removed external instance

This commit is contained in:
Zhiyuan Zheng
2021-01-26 12:17:25 +01:00
parent 08f3036753
commit 4076733061
22 changed files with 169 additions and 154 deletions

View File

@ -3,6 +3,7 @@ import { StyleConstants } from '@utils/styles/constants'
import layoutAnimation from '@utils/styles/layoutAnimation'
import { useTheme } from '@utils/styles/ThemeManager'
import React, { useEffect, useMemo, useRef } from 'react'
import { useTranslation } from 'react-i18next'
import {
Pressable,
StyleProp,
@ -48,6 +49,7 @@ const Button: React.FC<Props> = ({
overlay = false,
onPress
}) => {
const { i18n } = useTranslation()
const { theme } = useTheme()
const mounted = useRef(false)
@ -145,7 +147,7 @@ const Button: React.FC<Props> = ({
</>
)
}
}, [theme, content, loading, disabled, active])
}, [i18n.language, theme, content, loading, disabled, active])
enum spacingMapping {
XS = 'S',