-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add programmatic selection for linked wearables (#3205)
* feat: Add programmatic selection for linked wearables * fix: Test * feat: Add correct image for programmatic and standard third parties * fix: Styles * fix: Correct price
- Loading branch information
1 parent
95c0ba9
commit ecd9823
Showing
35 changed files
with
1,229 additions
and
565 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/components/Badges/CollectionTypeBadge/CollectionTypeBadge.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.badge { | ||
padding: 4px 8px 4px 8px; | ||
border-radius: 32px; | ||
width: fit-content; | ||
text-wrap: nowrap; | ||
text-transform: uppercase; | ||
font-weight: 600; | ||
} | ||
|
||
.thirdParty { | ||
background-color: #00a146; | ||
} | ||
|
||
.regular { | ||
background-color: #1764c0; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/components/Badges/CollectionTypeBadge/CollectionTypeBadge.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import classNames from 'classnames' | ||
import { t } from 'decentraland-dapps/dist/modules/translation' | ||
import styles from './CollectionTypeBadge.module.css' | ||
|
||
export const CollectionTypeBadge = ({ isThirdParty, className }: { isThirdParty?: boolean; className?: string }) => ( | ||
<div className={classNames(styles.badge, isThirdParty ? styles.thirdParty : styles.regular, className)}> | ||
{isThirdParty ? t('collection_type_badge.third_party') : t('collection_type_badge.regular')} | ||
</div> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './CollectionTypeBadge' |
16 changes: 16 additions & 0 deletions
16
src/components/Badges/ThirdPartyKindBadge/ThirdPartyKindBadge.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.badge { | ||
padding: 4px 8px 4px 8px; | ||
border-radius: 32px; | ||
width: fit-content; | ||
text-wrap: nowrap; | ||
text-transform: uppercase; | ||
font-weight: 600; | ||
} | ||
|
||
.programmatic { | ||
background-color: #691fa9; | ||
} | ||
|
||
.standard { | ||
background-color: #43404a; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/components/Badges/ThirdPartyKindBadge/ThirdPartyKindBadge.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import classNames from 'classnames' | ||
import { t } from 'decentraland-dapps/dist/modules/translation' | ||
import styles from './ThirdPartyKindBadge.module.css' | ||
|
||
export const ThirdPartyKindBadge = ({ isProgrammatic, className }: { isProgrammatic?: boolean; className?: string }) => ( | ||
<div className={classNames(styles.badge, isProgrammatic ? styles.programmatic : styles.standard, className)}> | ||
{isProgrammatic ? t('third_party_kind_badge.programmatic') : t('third_party_kind_badge.standard')} | ||
</div> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './ThirdPartyKindBadge' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.