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({
|
||||
activeTab,
|
||||
onTabChange,
|
||||
activeTab: _activeTab,
|
||||
onTabChange: _onTabChange,
|
||||
}: LoginTabsProps) {
|
||||
// Temporarily hidden: restore return JSX below (and Phone tab inside) when multi-tab login is re-enabled
|
||||
return null;
|
||||
|
||||
/*
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Pressable
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel="Login with Email"
|
||||
style={styles.tab}
|
||||
onPress={() => onTabChange("email")}
|
||||
onPress={() => _onTabChange("email")}
|
||||
>
|
||||
<Text
|
||||
style={[
|
||||
styles.text,
|
||||
activeTab === "email" && styles.activeText,
|
||||
_activeTab === "email" && styles.activeText,
|
||||
]}
|
||||
>
|
||||
Email
|
||||
</Text>
|
||||
|
||||
{activeTab === "email" && (
|
||||
{_activeTab === "email" && (
|
||||
<View style={styles.indicator} />
|
||||
)}
|
||||
</Pressable>
|
||||
|
||||
{/* Temporarily hidden: uncomment to re-enable Phone login tab
|
||||
<Pressable
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel="Login with Phone"
|
||||
style={styles.tab}
|
||||
onPress={() => onTabChange("phone")}
|
||||
onPress={() => _onTabChange("phone")}
|
||||
>
|
||||
<Text
|
||||
style={[
|
||||
styles.text,
|
||||
activeTab === "phone" && styles.activeText,
|
||||
_activeTab === "phone" && styles.activeText,
|
||||
]}
|
||||
>
|
||||
Phone
|
||||
</Text>
|
||||
|
||||
{activeTab === "phone" && (
|
||||
{_activeTab === "phone" && (
|
||||
<View style={styles.indicator} />
|
||||
)}
|
||||
</Pressable>
|
||||
*/}
|
||||
</View>
|
||||
);
|
||||
*/
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
|
|
|
|||
Loading…
Reference in New Issue