frontend: use text area instead of input for the new mood entry
Pedro Lucas Porcellis porcellis@eletrotupi.com · 5 months ago
c49da6aaf11d18081de98784bdfc1ece1bf763de Browse filesParents
75d4838Changed files
1
Additions
+5
Deletions
-2
frontend/app/(tabs)/new/entry.tsx
1 1
import { useState, useEffect } from 'react';
2 2
import {
3 3
Link, router, useLocalSearchParams
4 4
} from 'expo-router';
5 5
16 16
import { ScreenLayout } from '@/components/ui/ScreenLayout';
17 17
import { useAuth } from '@/context/AuthContext';
18 18
import { Grid, Col, Row, Between, Center } from '@/components/ui/LayoutHelpers';
19 19
import { Card } from '@/components/ui/Cards';
20 20
import { Button } from '@/components/ui/Button';
21 -
import { Input } from '@/components/ui/Input';
21 +
import { Input, TextArea } from '@/components/ui/Input';
22 22
import { Section, SectionHeader } from '@/components/ui/Sections';
23 23
import { Spacing, Typography, Colors } from '@/constants/theme';
24 24
25 25
export default function NewMoodEntry() {
26 26
const { user } = useAuth();
44 44
45 45
<Card style={styles.resumeCard}>
46 46
</Card>
47 47
48 48
<Card style={styles.annotationsCard}>
49 -
<Input
49 +
<TextArea
50 50
label="Notas sobre o dia"
51 51
type="text"
52 +
variant="darkGhost"
52 53
onChangeText={(val) => console.log(val)}
54 +
minRows={4}
55 +
maxRows={6}
53 56
placeholder="Escreva uma nota rápida sobre o seu dia..."
54 57
/>
55 58
</Card>
56 59
57 60
<Section>
84 87
},
85 88
resumeCard: {
86 89
height: 361
87 90
}
88 91
});