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

Added store review

This commit is contained in:
Zhiyuan Zheng
2021-01-18 00:23:40 +01:00
parent f977fdfa8b
commit 5c4f7ce8c7
20 changed files with 302 additions and 108 deletions

View File

@ -13,7 +13,7 @@ export interface Props {
title: string
description?: string
content?: string
content?: string | React.ReactNode
switchValue?: boolean
switchDisabled?: boolean
@ -90,26 +90,28 @@ const MenuRow: React.FC<Props> = ({
</View>
</View>
{(content && content.length) ||
switchValue !== undefined ||
iconBack ? (
{content || switchValue !== undefined || iconBack ? (
<View style={styles.back}>
{content && content.length ? (
<>
<Text
style={[
styles.content,
{
color: theme.secondary,
opacity: !iconBack && loading ? 0 : 1
}
]}
numberOfLines={1}
>
{content}
</Text>
{loading && !iconBack && loadingSpinkit}
</>
{content ? (
typeof content === 'string' ? (
<>
<Text
style={[
styles.content,
{
color: theme.secondary,
opacity: !iconBack && loading ? 0 : 1
}
]}
numberOfLines={1}
>
{content}
</Text>
{loading && !iconBack && loadingSpinkit}
</>
) : (
content
)
) : null}
{switchValue !== undefined ? (
<Switch