Show owner on note

This commit is contained in:
keannu125 2023-03-02 00:43:26 +08:00
parent 132dfa496d
commit 2e6c5fbef8
3 changed files with 5 additions and 1 deletions

View file

@ -16,7 +16,8 @@ export default function Note(props: NoteProps) {
return (
<div style={styles.flex_column}>
<div style={styles.note}>
<p style={styles.text_medium}>{props.title}</p>
<p style={styles.text_medium}>Owner: {props.owner}</p>
<p style={styles.text_medium}>Title: {props.title}</p>
<div style={styles.note_content}>
<p style={styles.text_small}>{props.content}</p>
</div>

View file

@ -58,6 +58,7 @@ export default function Notes() {
{notes.map(
(
note: {
owner: string;
title: string;
content: string;
id: number;
@ -72,6 +73,7 @@ export default function Notes() {
title={note.title}
content={note.content}
date_created={note.date_created}
owner={note.owner}
/>
);
}

View file

@ -20,6 +20,7 @@ export interface NoteProps {
content: string;
id: number;
date_created: string;
owner: string;
}
export interface IconProps {