mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
feat(notes/nui): Notes initial commit
This commit is contained in:
1 parent
3f6600c28c
commit
f1aea97cc4
12 files changed
+228
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import { ListItem, ListItemText } from '@material-ui/core'
|
||||
import React from 'react'
|
||||
|
||||
export const NoteItem = (note) => {
|
||||
return (
|
||||
<ListItem button divider>
|
||||
<ListItemText>{note.title}</ListItemText>
|
||||
</ListItem>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { List } from '@material-ui/core';
|
||||
import React from 'react'
|
||||
import { NoteItem } from './NoteItem';
|
||||
|
||||
// add search bar later
|
||||
const NoteList = ({notes}) => {
|
||||
return (
|
||||
<List>
|
||||
{notes.map((note) => (
|
||||
<NoteItem key={note.id} {...note} />
|
||||
))}
|
||||
</List>
|
||||
)
|
||||
}
|
||||
|
||||
export default NoteList;
|
||||
Reference in new issue
Block a user