summaryrefslogtreecommitdiffstats
path: root/src/app/(auth)
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/(auth)')
-rw-r--r--src/app/(auth)/_layout.tsx2
-rw-r--r--src/app/(auth)/login.tsx21
-rw-r--r--src/app/(auth)/register.tsx21
3 files changed, 43 insertions, 1 deletions
diff --git a/src/app/(auth)/_layout.tsx b/src/app/(auth)/_layout.tsx
index 1fa69af..14383a2 100644
--- a/src/app/(auth)/_layout.tsx
+++ b/src/app/(auth)/_layout.tsx
@@ -20,7 +20,7 @@ export default function AuthLayout() {
}
if (user) {
- return <Redirect href="/(protected)/home" />;
+ return <Redirect href="/home" />;
}
return <Stack screenOptions={{ headerShown: false }} />;
diff --git a/src/app/(auth)/login.tsx b/src/app/(auth)/login.tsx
index 8dbac8b..9a3dfe0 100644
--- a/src/app/(auth)/login.tsx
+++ b/src/app/(auth)/login.tsx
@@ -185,6 +185,27 @@ const styles = StyleSheet.create({
color: colors.text,
},
+ inputWrapper: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ borderWidth: 1,
+ borderColor: colors.border,
+ borderRadius: radius.md,
+ backgroundColor: colors.background,
+ },
+
+ inputWithIcon: {
+ flex: 1,
+ paddingHorizontal: spacing.lg,
+ paddingVertical: spacing.md,
+ color: colors.text,
+ },
+
+ iconButton: {
+ paddingHorizontal: spacing.lg,
+ paddingVertical: spacing.md,
+ },
+
// texto de recuperar contraseƱa
forgotPassword: {
fontSize: typography.sm,
diff --git a/src/app/(auth)/register.tsx b/src/app/(auth)/register.tsx
index 902c752..7040189 100644
--- a/src/app/(auth)/register.tsx
+++ b/src/app/(auth)/register.tsx
@@ -235,6 +235,27 @@ const styles = StyleSheet.create({
color: colors.text,
},
+ inputWrapper: {
+ flexDirection: 'row',
+ alignItems: 'center',
+ borderWidth: 1,
+ borderColor: colors.border,
+ borderRadius: radius.md,
+ backgroundColor: colors.background,
+ },
+
+ inputWithIcon: {
+ flex: 1,
+ paddingHorizontal: spacing.lg,
+ paddingVertical: spacing.md,
+ color: colors.text,
+ },
+
+ iconButton: {
+ paddingHorizontal: spacing.lg,
+ paddingVertical: spacing.md,
+ },
+
// boton principal
button: {
backgroundColor: colors.primary,