Skip to content

Commit

Permalink
Added color borders for pro and published profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
macterra committed Oct 19, 2023
1 parent a67d937 commit 86de1b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/ProfileCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ProfileCard = ({ profile }) => {
justifyContent: 'center',
overflow: 'hidden',
position: 'relative',
border: '1px solid #ccc', // Add a thin border
border: profile.pro ? '1px solid #0ff' : profile.published ? '1px solid #0f0' : '1px solid #ccc',
borderRadius: '4px', // Add a border radius
padding: '8px', // Add padding
};
Expand All @@ -29,7 +29,7 @@ const ProfileCard = ({ profile }) => {
height: '100%',
objectFit: 'cover',
position: 'absolute',
borderRadius: '50%',
borderRadius: '50%',
};

const titleStyle = {
Expand Down
4 changes: 4 additions & 0 deletions xidb.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,11 @@ const getAgentAndCollections = (profileId, userId) => {

if (assetData.token) {
collections[assetData.asset.collection].published = true;
agentData.published = true;

if (assetData.sold) {
collections[assetData.asset.collection].sold = true;
agentData.pro = true;
}
}
} else {
Expand All @@ -733,9 +735,11 @@ const getAgentAndCollections = (profileId, userId) => {
if (assetData.asset.collection in collections) {
collections[assetData.asset.collection].collection.assets.push(assetData);
collections[assetData.asset.collection].published = true;
agentData.published = true;

if (assetData.sold) {
collections[assetData.asset.collection].sold = true;
agentData.pro = true;
}
}
}
Expand Down

0 comments on commit 86de1b3

Please sign in to comment.