Integrate React frontend for desktop app
* Added component files
* Added dependencies and settings on package.json
* Updated package-lock.json to match new dependencies
* Added react scripts and config files
This commit is contained in:
1 parent
b5d87dd1eb
commit
577fb7cfab
100 files changed
+45030
-422
No files matched your search
@@ -0,0 +1,5 @@
|
||||
.postFeedContainer {
|
||||
max-width: 39rem;
|
||||
padding: 0.5rem ;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import './PostsFeed.css';
|
||||
import React from 'react';
|
||||
import {Stack} from "@mui/material";
|
||||
import Post from "../post/Post";
|
||||
|
||||
const PostsFeed = () => {
|
||||
const postFeed = [1, 2, 3, 4, 5];
|
||||
|
||||
const posts = postFeed.map(
|
||||
value => {
|
||||
return <Post key={value} id={value} name={`user${value}`}/>
|
||||
}
|
||||
)
|
||||
|
||||
return (
|
||||
<div className="postFeedContainer">
|
||||
<Stack direction="column"
|
||||
spacing={2}>
|
||||
{posts}
|
||||
</Stack>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default PostsFeed;
|
||||
Reference in new issue
Block a user