Tab switcher

This commit is contained in:
Max Lynch
2020-12-20 23:45:08 -06:00
parent 8b2df11c87
commit e8324428bf
8 changed files with 46 additions and 19 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ import { homeItems } from "../../data";
import PostCard from "../Card";
import Content from "../Content";
const Home = () => {
const Home = ({ selected }) => {
return (
<Content>
<Content visible={selected}>
{homeItems.map(i => (
<PostCard {...i} />
))}
+2 -2
View File
@@ -1,9 +1,9 @@
import { homeItems } from "../../data";
import Content from "../Content";
const Profile = () => {
const Profile = ({ selected }) => {
return (
<Content>
<Content visible={selected}>
<h2>Profile</h2>
</Content>
)
+2 -2
View File
@@ -1,8 +1,8 @@
import Content from "../Content";
const Settings = () => {
const Settings = ({ selected }) => {
return (
<Content className="p-4">
<Content visible={selected}>
<h2>Settings</h2>
</Content>
)