Skip to content

Commit

Permalink
feat: add metamask snap to missions (shapeshift#5332)
Browse files Browse the repository at this point in the history
  • Loading branch information
twblack88 authored Sep 20, 2023
1 parent f923067 commit cfd6bc7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ If you are using Linux and macOS it works out of the box following these steps:

3. Install [OpenJDK](https://openjdk.java.net/install/).

> On MacOS if you have [installed](https://openapi-generator.tech/docs/installation/) `openapi-generator-cli`, it will be installed automatically.
> On MacOS via homebrew `brew install java` should do the trick
> if you have [installed](https://openapi-generator.tech/docs/installation/) `brew install openapi-generator`, it should be installed automatically.
> Follow the commands to symlink the PATH for JDK & java
> To verify a proper install and link check on the `java -version` and it should have openJDK versions displayed alongside java version.

4. Install Dependencies:

Expand Down
Binary file added src/assets/snap-foxatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/translations/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -2088,6 +2088,11 @@
"subtitle": "Buy, sell, trade, earn, and more",
"title": "Earn FOX",
"cta": "Start Mission"
},
"snapfoxatar": {
"title": "Unlock Bitcoin with MetaMask",
"subtitle": "Mint a Metamask FOXatar skin",
"cta": "Start Mission"
}
},
"avatar": {
Expand Down
10 changes: 5 additions & 5 deletions src/pages/Missions/Missions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import { useTranslate } from 'react-polyglot'
import { NavLink } from 'react-router-dom'
import FoxMissionsBg from 'assets/fox-mission-bg.jpg'
import FoxArmyBg from 'assets/foxarmy-bg.png'
import FoxAtarBg from 'assets/foxatar-card-bg.png'
import FoxRewardsBg from 'assets/foxrewards-mission.png'
import SponsorBg from 'assets/mission-sponsor-bg.jpg'
import OptimismBg from 'assets/op-card-bg.png'
import SnapFoxatar from 'assets/snap-foxatar.jpg'
import YatBg from 'assets/yat-mission-bg.png'
import { Carousel } from 'components/Carousel/Carousel'
import type { CarouselHeaderProps } from 'components/Carousel/types'
Expand All @@ -47,10 +47,10 @@ export const useGetMissions = () => {
const missionItems: MissionProps[] = useMemo(() => {
return [
{
title: translate('missions.foxatar.title'),
subtitle: translate('missions.foxatar.subtitle'),
buttonText: translate('missions.foxatar.cta'),
coverImage: FoxAtarBg,
title: translate('missions.snapfoxatar.title'),
subtitle: translate('missions.snapfoxatar.subtitle'),
buttonText: translate('missions.snapfoxatar.cta'),
coverImage: SnapFoxatar,
onClick: () => window.open('https://app.mercle.xyz/shapeshift/events'),
},
{
Expand Down

0 comments on commit cfd6bc7

Please sign in to comment.