-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #288 from Gateway-DAO/release/nov-29
Release - November 29th (Prod)
- Loading branch information
Showing
79 changed files
with
2,321 additions
and
1,571 deletions.
There are no files selected for viewing
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,2 @@ | ||
export * from './task-icon'; | ||
export * from './types'; |
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,64 @@ | ||
import { PhotoCameraBack } from '@mui/icons-material'; | ||
import ElectricBoltIcon from '@mui/icons-material/ElectricBolt'; | ||
import GitHubIcon from '@mui/icons-material/GitHub'; | ||
import InsertLinkIcon from '@mui/icons-material/InsertLink'; | ||
import MonetizationOnIcon from '@mui/icons-material/MonetizationOn'; | ||
import NumbersIcon from '@mui/icons-material/Numbers'; | ||
import QuizIcon from '@mui/icons-material/Quiz'; | ||
import StarIcon from '@mui/icons-material/Star'; | ||
import Twitter from '@mui/icons-material/Twitter'; | ||
import Box from '@mui/material/Box'; | ||
import { SvgIcon, SvgIconProps } from '@mui/material'; | ||
import { useMemo } from 'react'; | ||
import { SxProps } from '@mui/material'; | ||
import { TaskType } from './types'; | ||
|
||
export function TaskIcon({ type, sx }: { type: TaskType; sx?: SxProps }) { | ||
const iconBgColor = | ||
{ | ||
self_verify: '#9A53FF', | ||
quiz: '#9A53FF', | ||
token_hold: '#9A53FF', | ||
nft_hold: '#9A53FF', | ||
meeting_code: '#9A53FF', | ||
twitter_follow: '#0094FF', | ||
twitter_retweet: '#0094FF', | ||
twitter_tweet: '#0094FF', | ||
github_contribute: '#4A4F57', | ||
github_prs: '#4A4F57', | ||
snapshot: '#F3B04E', | ||
} ?? '#9A53FF'; | ||
|
||
const iconComponent = useMemo(() => { | ||
const types = { | ||
self_verify: InsertLinkIcon, | ||
quiz: QuizIcon, | ||
token_hold: MonetizationOnIcon, | ||
nft_hold: PhotoCameraBack, | ||
meeting_code: NumbersIcon, | ||
twitter_follow: Twitter, | ||
twitter_retweet: Twitter, | ||
twitter_tweet: Twitter, | ||
github_contribute: GitHubIcon, | ||
github_prs: GitHubIcon, | ||
snapshot: ElectricBoltIcon, | ||
}; | ||
|
||
return types[type] || null; | ||
}, [type]); | ||
|
||
return ( | ||
<Box | ||
display="flex" | ||
component="span" | ||
bgcolor={iconBgColor[type]} | ||
padding={1.5} | ||
borderRadius={1} | ||
color={'#ffffff'} | ||
alignContent={'center'} | ||
sx={{ ...sx }} | ||
> | ||
<SvgIcon component={iconComponent} /> | ||
</Box> | ||
); | ||
} |
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,12 @@ | ||
export type TaskType = | ||
| 'self_verify' | ||
| 'quiz' | ||
| 'token_hold' | ||
| 'nft_hold' | ||
| 'meeting_code' | ||
| 'twitter_follow' | ||
| 'twitter_retweet' | ||
| 'twitter_tweet' | ||
| 'github_contribute' | ||
| 'github_prs' | ||
| 'snapshot'; |
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.
3200882
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
gateway-website – ./
gateway-website-git-main-gateway-dao.vercel.app
gateway-website-gateway-dao.vercel.app
mygateway.xyz
www.mygateway.xyz