Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
added more listings and capitalized data in tables
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicfarr committed Nov 2, 2022
1 parent 0e52228 commit 79ada71
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
8 changes: 8 additions & 0 deletions src/api/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ const listing3 = listing();
const listing4 = listing();
const listing5 = listing();
const listing6 = listing();
const listing7 = listing();
const listing8 = listing();
const listing9 = listing();
const listing10 = listing();

export const influencers = [influencer1, influencer2, influencer3];
export const listings = [
Expand All @@ -200,6 +204,10 @@ export const listings = [
listing4,
listing5,
listing6,
listing7,
listing8,
listing9,
listing10,
];
export const collaborations = [
collaboration(listing1, influencer1),
Expand Down
12 changes: 9 additions & 3 deletions src/containers/proposals/AllListings.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ const text = {
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
"&>p": {
fontWeight: 600,
"&::first-letter": {
textTransform: "capitalize",
},
},
};
export const AllListings = () => {
const nav = useNavigate();
Expand All @@ -38,7 +44,7 @@ export const AllListings = () => {
</Box>
<Paper variant="outlined" sx={{ padding: 1 }}>
<Typography variant="h5">My Listings ({listings.length})</Typography>
<Box sx={{ overflow: "auto", height: "200px" }}>
<Box sx={{ overflow: "auto", height: 350 }}>
{listings
.sort(
(a, b) =>
Expand Down Expand Up @@ -71,10 +77,10 @@ export const AllListings = () => {
}}
>
<Box onClick={() => handleClick(p)} sx={text}>
{p.title}
<Typography>{p.title}</Typography>
</Box>
<Box onClick={() => handleClick(p)} sx={text}>
{p.name}
<Typography>{p.name}</Typography>
</Box>
<Box p={0} m={0}>
<CollaborationsStateCounts
Expand Down

0 comments on commit 79ada71

Please sign in to comment.