aswi2023one-team-to-rule-them-all-gitlab/src/components/notes/NoteView.tsx @ 6c38c709
1 |
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 |
19 |