-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add campaign modules and banners
- Loading branch information
1 parent
a6b721b
commit 2f9d552
Showing
44 changed files
with
181 additions
and
345 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.banner { | ||
margin-bottom: 24px; | ||
} |
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
4 changes: 3 additions & 1 deletion
4
webapp/src/components/Campaign/CampaignBadge/CampaignBadge.container.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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { connect } from 'react-redux' | ||
import { getMainTag } from 'decentraland-dapps/dist/modules/campaign/selectors' | ||
import { getIsCampaignBrowserEnabled } from '../../../modules/features/selectors' | ||
import { RootState } from '../../../modules/reducer' | ||
import CampaignBadge from './CampaignBadge' | ||
import { MapStateProps } from './CampaignBadge.types' | ||
|
||
const mapState = (state: RootState): MapStateProps => ({ | ||
isCampaignBrowserEnabled: getIsCampaignBrowserEnabled(state) | ||
isCampaignBrowserEnabled: getIsCampaignBrowserEnabled(state), | ||
campaignTag: getMainTag(state) | ||
}) | ||
|
||
export default connect(mapState)(CampaignBadge) |
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
3 changes: 2 additions & 1 deletion
3
webapp/src/components/Campaign/CampaignBadge/CampaignBadge.types.ts
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export type Props = { | ||
isCampaignBrowserEnabled: boolean | ||
campaignTag?: string | ||
contract: string | ||
} | ||
|
||
export type MapStateProps = Pick<Props, 'isCampaignBrowserEnabled'> | ||
export type MapStateProps = Pick<Props, 'isCampaignBrowserEnabled' | 'campaignTag'> |
5 changes: 0 additions & 5 deletions
5
webapp/src/components/Campaign/CampaignBanner/CampaignBanner.css
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
webapp/src/components/Campaign/CampaignBanner/CampaignBanner.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
6 changes: 5 additions & 1 deletion
6
webapp/src/components/Campaign/CampaignBrowserPage/CampaignBrowserPage.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
Oops, something went wrong.