Skip to content

Commit

Permalink
feat: create TeamDirectoryComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneMoroz committed Sep 26, 2023
1 parent 49f0bae commit 4cead3d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
12 changes: 12 additions & 0 deletions src/app/directory/components/TeamDirectory.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { TeamCardsContainer, TeamTable } from ".";

export default function TeamDirectory() {
return (
<>
{/* For screens > 1920px */}
<TeamTable />
{/* For screens < 1920px */}
<TeamCardsContainer />
</>
);
}
1 change: 1 addition & 0 deletions src/app/directory/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export { default as TeamRow } from "./TeamRow";
export { default as TeamCard } from "./TeamCard";
export { default as TeamCardsContainer } from "./TeamCardsContainer";
export { default as EditCell } from "./EditCell";
export { default as TeamDirectory } from "./TeamDirectory";
export * from "./fixtures/MyTeam";
7 changes: 2 additions & 5 deletions src/app/directory/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TeamTable, TeamCardsContainer } from ".";
import { TeamDirectory } from ".";
import { Banner } from "@/components";

function DirectoryPage() {
Expand All @@ -10,10 +10,7 @@ function DirectoryPage() {
title="Directory"
description="Behold, your mighty band of teammates! If you want them to plan with precision and prowess, make sure your deets are up to date, or else prepare for some serious spreadsheet confusion!"
/>
{/* For screens > 1920px */}
<TeamTable />
{/* For screens < 1920px */}
<TeamCardsContainer />
<TeamDirectory />
</>
);
}
Expand Down

0 comments on commit 4cead3d

Please sign in to comment.