mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
styling(misc): Misc. Tweaks and gen styling changes
General Phone: - Removed unecessary border that was causing an issue at 80% zoom - Added tooltips to the app grid - Added 4 new backgrounds Contact App: - Fix styling issue that lead to seeing the background from modal - Fix add new contact button sticky position Notes: - Removed padding from list - Fixed localeName Sellout: - Changed NavBar and Title Color Settings: - Removed modal list padding Note: Let me if you prefer the AppTitle component vs the old Title method also this is just a start to the full app restyles
This commit is contained in:
1 parent
f7165bf9ae
commit
954ef6277c
18 files changed
+316
-291
No files matched your search
@@ -1,28 +1,34 @@
|
||||
import { List, ListItem, ListItemText } from '@material-ui/core';
|
||||
import React, { useState } from 'react'
|
||||
import React, { useState } from 'react';
|
||||
|
||||
import { useNoteModal } from '../hooks/useNoteModal';
|
||||
import { useNoteDetail } from '../hooks/useNoteDetail';
|
||||
|
||||
// add search bar later
|
||||
const NoteList = ({notes}) => {
|
||||
// TODO: Add interface for note
|
||||
const NoteList = ({ notes }) => {
|
||||
const { setNoteModal } = useNoteModal();
|
||||
const { setDetail } = useNoteDetail();
|
||||
|
||||
const handleNoteModal = (note) => {
|
||||
setNoteModal(true)
|
||||
setDetail(note)
|
||||
}
|
||||
setNoteModal(true);
|
||||
setDetail(note);
|
||||
};
|
||||
|
||||
return (
|
||||
<List>
|
||||
<List disablePadding>
|
||||
{notes.map((note) => (
|
||||
<ListItem key={note.id} button divider onClick={() => handleNoteModal(note)}>
|
||||
<ListItemText><strong>{note.title}</strong></ListItemText>
|
||||
<ListItem
|
||||
key={note.id}
|
||||
button
|
||||
divider
|
||||
onClick={() => handleNoteModal(note)}
|
||||
>
|
||||
<ListItemText>{note.title}</ListItemText>
|
||||
</ListItem>
|
||||
))}
|
||||
</List>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default NoteList;
|
||||
Reference in new issue
Block a user