aswi2023one-team-to-rule-them-all-gitlab/src/components/notes/NoteView.tsx @ 29f3811f
1 | cb25df10 | Fantič | import { HStack, Box, Text } from "native-base"; |
---|---|---|---|
2 | import { Note } from "../../types/note"; |
||
3 | |||
4 | const NoteView = (props: { note: Note }) => { |
||
5 | const note = props.note; |
||
6 | return ( |
||
7 | <HStack> |
||
8 | <Box width="5%" /> |
||
9 | <Box width="30%"> |
||
10 | <Text bold>{note.username}</Text> |
||
11 | </Box> |
||
12 | |||
13 | <Text>{note.note}</Text> |
||
14 | </HStack> |
||
15 | );
|
||
16 | }
|
||
17 | |||
18 | export default NoteView |