chore(auth): temporarily hide email/phone login tabs bar
This commit is contained in:
parent
d9d1487265
commit
a83f17e32c
|
|
@ -20,54 +20,57 @@ interface LoginTabsProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function LoginTabs({
|
export default function LoginTabs({
|
||||||
activeTab,
|
activeTab: _activeTab,
|
||||||
onTabChange,
|
onTabChange: _onTabChange,
|
||||||
}: LoginTabsProps) {
|
}: LoginTabsProps) {
|
||||||
|
// Temporarily hidden: restore return JSX below (and Phone tab inside) when multi-tab login is re-enabled
|
||||||
|
return null;
|
||||||
|
|
||||||
|
/*
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<Pressable
|
<Pressable
|
||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
accessibilityLabel="Login with Email"
|
accessibilityLabel="Login with Email"
|
||||||
style={styles.tab}
|
style={styles.tab}
|
||||||
onPress={() => onTabChange("email")}
|
onPress={() => _onTabChange("email")}
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
styles.text,
|
styles.text,
|
||||||
activeTab === "email" && styles.activeText,
|
_activeTab === "email" && styles.activeText,
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
Email
|
Email
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
{activeTab === "email" && (
|
{_activeTab === "email" && (
|
||||||
<View style={styles.indicator} />
|
<View style={styles.indicator} />
|
||||||
)}
|
)}
|
||||||
</Pressable>
|
</Pressable>
|
||||||
|
|
||||||
{/* Temporarily hidden: uncomment to re-enable Phone login tab
|
|
||||||
<Pressable
|
<Pressable
|
||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
accessibilityLabel="Login with Phone"
|
accessibilityLabel="Login with Phone"
|
||||||
style={styles.tab}
|
style={styles.tab}
|
||||||
onPress={() => onTabChange("phone")}
|
onPress={() => _onTabChange("phone")}
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
styles.text,
|
styles.text,
|
||||||
activeTab === "phone" && styles.activeText,
|
_activeTab === "phone" && styles.activeText,
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
Phone
|
Phone
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
{activeTab === "phone" && (
|
{_activeTab === "phone" && (
|
||||||
<View style={styles.indicator} />
|
<View style={styles.indicator} />
|
||||||
)}
|
)}
|
||||||
</Pressable>
|
</Pressable>
|
||||||
*/}
|
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue