List items and modal

This commit is contained in:
Max Lynch
2020-12-22 12:37:43 -06:00
parent 49c497670a
commit 9a37a9f7db
80 changed files with 231 additions and 47 deletions
+24
View File
@@ -0,0 +1,24 @@
import Content from '../Content';
import { Virtuoso } from 'react-virtuoso';
import List from '../List';
import ListItem from '../ListItem';
const Feed = ({ selected }) => {
return (
<Content visible={selected} className="p-4">
<List className="h-full w-full">
{selected && (
<Virtuoso
totalCount={1000}
overscan={200}
style={{ height: '100%', width: '100%' }}
itemContent={index => <ListItem>Item {index}</ListItem>}
/>
)}
</List>
</Content>
);
};
export default Feed;
-12
View File
@@ -1,12 +0,0 @@
import { homeItems } from "../../data";
import Content from "../Content";
const Profile = ({ selected }) => {
return (
<Content visible={selected} className="p-4">
<h2>Profile</h2>
</Content>
)
}
export default Profile;