-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
4 additions
and
297 deletions.
There are no files selected for viewing
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
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,22 +1,10 @@ | ||
import { createAction } from '@reduxjs/toolkit'; | ||
|
||
import { OptimalPromotionType, OptimalPromoVariantEnum } from 'lib/apis/optimal'; | ||
import { createActions } from 'lib/store'; | ||
|
||
interface HidePromotionActionPayload { | ||
id: string; | ||
timestamp: number; | ||
} | ||
|
||
export const loadPartnersPromoAction = createActions< | ||
{ | ||
optimalPromoVariantEnum: OptimalPromoVariantEnum; | ||
accountAddress: string; | ||
}, | ||
OptimalPromotionType, | ||
string | ||
>('partnersPromo/LOAD_PARTNERS'); | ||
|
||
export const togglePartnersPromotionAction = createAction<boolean>('partnersPromo/TOGGLE_PARTNERS_PROMO'); | ||
|
||
export const hidePromotionAction = createAction<HidePromotionActionPayload>('advertising/PROMOTION_HIDING'); |
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
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 |
---|---|---|
@@ -1,29 +1,8 @@ | ||
import { createEntity, mockPersistedState } from 'lib/store'; | ||
import { mockPersistedState } from 'lib/store'; | ||
|
||
import type { PartnersPromotionState } from './state'; | ||
|
||
export const mockPartnersPromotion = { | ||
body: '', | ||
campaign_type: '', | ||
copy: { | ||
headline: '', | ||
cta: '', | ||
content: '' | ||
}, | ||
display_type: '', | ||
div_id: '', | ||
html: [], | ||
id: '', | ||
image: '', | ||
link: '', | ||
nonce: '', | ||
text: '', | ||
view_time_url: '', | ||
view_url: '' | ||
}; | ||
|
||
export const mockPartnersPromotionState = mockPersistedState<PartnersPromotionState>({ | ||
promotion: createEntity(mockPartnersPromotion), | ||
shouldShowPromotion: true, | ||
promotionHidingTimestamps: {} | ||
}); |
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,16 +1,9 @@ | ||
import { OptimalPromotionType } from 'lib/apis/optimal'; | ||
import { LoadableEntityState, createEntity } from 'lib/store'; | ||
|
||
import { mockPartnersPromotion } from './state.mock'; | ||
|
||
export interface PartnersPromotionState { | ||
promotion: LoadableEntityState<OptimalPromotionType>; | ||
shouldShowPromotion: boolean; | ||
promotionHidingTimestamps: StringRecord<number>; | ||
} | ||
|
||
export const partnersPromotionInitialState: PartnersPromotionState = { | ||
promotion: createEntity(mockPartnersPromotion), | ||
shouldShowPromotion: false, | ||
promotionHidingTimestamps: {} | ||
}; |
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
93 changes: 0 additions & 93 deletions
93
src/app/templates/partners-promotion/components/optimal-promotion.tsx
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
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.