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

Commit

Permalink
LL-3632 enable blackfriday banner (#3302)
Browse files Browse the repository at this point in the history
* enable blackfriday banner

* increment nonce
  • Loading branch information
machard authored Nov 20, 2020
1 parent ff76086 commit 1a49be2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/renderer/components/Carousel/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import StakeAlgorandBanner from "~/renderer/components/Carousel/banners/StakeAlg
import SwapBanner from "~/renderer/components/Carousel/banners/Swap";
import SellBanner from "~/renderer/components/Carousel/banners/Sell";
import LendingBanner from "~/renderer/components/Carousel/banners/Lending";
// import BlackFridayBanner from "~/renderer/components/Carousel/banners/BlackFriday";
import BlackFridayBanner from "~/renderer/components/Carousel/banners/BlackFriday";

export const getTransitions = (transition: "slide" | "flip", reverse: boolean = false) => {
const mult = reverse ? -1 : 1;
Expand Down Expand Up @@ -47,18 +47,18 @@ export const getTransitions = (transition: "slide" | "flip", reverse: boolean =

export const getDefaultSlides = () => {
return [
{
id: "blackfriday",
Component: BlackFridayBanner,
start: new Date("1 Nov 2020 00:01:00 PST"),
end: new Date("30 Nov 2020 23:59:00 PST"),
},
{ id: "swap", Component: SwapBanner },
{ id: "buy", Component: BuyCryptoBanner },
{ id: "sell", Component: SellBanner },
{ id: "backupPackBanner", Component: BackupPackBanner },
{ id: "ledgerAcademy", Component: LedgerAcademyBanner },
{ id: "stakeAlgorand", Component: StakeAlgorandBanner },
{ id: "lending", Component: LendingBanner },
/* {
id: "blackfriday",
Component: BlackFridayBanner,
start: new Date("1 Nov 2020 00:01:00 PST"),
end: new Date("30 Nov 2020 23:59:00 PST"),
}, */
];
};
2 changes: 1 addition & 1 deletion src/renderer/components/Carousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const Wrapper: ThemedComponent<{}> = styled.div`
cursor: pointer;
`;

export const CAROUSEL_NONCE: number = 4;
export const CAROUSEL_NONCE: number = 5;

const Carousel = ({
withArrows = true,
Expand Down

0 comments on commit 1a49be2

Please sign in to comment.