Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix playbooks chapter by adding OP chain #1726

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/design-system/src/MetaTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ export const MetaTilePathPlaybook = React.forwardRef<
direction="column"
position="absolute"
zIndex={2}
bgColor="whiteAlpha.200"
border={{
base: '1px solid rgba(255, 255, 255, 0.12)',
xl: '2px solid rgba(255, 255, 255, 0.12)',
Expand Down Expand Up @@ -317,7 +316,7 @@ export const MetaTilePathCosmetics: React.FC<MetaTilePathCosmeticsProps> = ({
width="full"
maxW={width}
background={
'linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0.34%, rgba(0, 0, 0, 0.00) 34.08%, rgba(13, 0, 19, 0.35) 59.18%, rgba(20, 0, 28, 0.85) 100%)'
'linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0.34%, rgba(0, 0, 0, 0.00) 34.08%, rgba(13, 0, 19, 0.35) 59.18%, rgba(20, 0, 28, 0.3) 100%)'
}
borderRightRadius={{ base: 'lg', xl: '2xl' }}
zIndex={1}
Expand Down
6 changes: 0 additions & 6 deletions packages/web/components/Landing/LandingConnectButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ export const LandingConnectButton = ({ isIconStyle = false, ...props }) => {
}
}, [connected, chainId, address, provider, toast]);

useEffect(() => {
if (!connected) {
setWrongNetwork(false);
}
}, [connected]);

return (
<Tooltip
label={
Expand Down
9 changes: 9 additions & 0 deletions packages/web/utils/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const GOERLI = '0x5';
export const GNOSIS = '0x64';
export const POLYGON = '0x89';
export const MUMBAI = '0x013881';
export const OPTIMISM = '0xa';

export const NETWORK_INFO: NetworkInfo = {
[MAINNET]: {
Expand Down Expand Up @@ -58,6 +59,14 @@ export const NETWORK_INFO: NetworkInfo = {
explorer: 'https://mumbai.polygonscan.com',
rpc: 'https://matic-mumbai.chainstacklabs.com',
},
[OPTIMISM]: {
chainId: OPTIMISM,
name: 'Optimism',
label: 'Optimism',
symbol: 'ETH',
explorer: 'https://optimistic.etherscan.io/',
rpc: 'https://op-pokt.nodies.app',
},
};

export function getHexChainId(chain?: string): string {
Expand Down
32 changes: 3 additions & 29 deletions packages/web/utils/questChains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ export const QuestChainsCategories = {
META: 'meta',
WEB3_BASICS: 'web3-basics',
HOW_TO_DAO: 'how-to-dao',
METAALLIANCE: 'metaalliance',
SELF_ACTUALIZATION: 'self-actualization',
REGENERATION: 'regeneration',
USING_AI: 'using-ai',
WELLBEING_SELF_IMPROVEMENT: 'wellbeing-self-improvement',
WELLBEING_SELF_IMPROVEMENT: 'wellbeing-self-improvement',
RANDOM: 'random',
ALL: 'all',
};
Expand Down Expand Up @@ -104,7 +101,6 @@ export const QuestChainsPlaybooks = {
JOURNALING_LIKE_DICKIE_BUSH: 'journaling-like-dickie-bush',
HOW_TO_PLAY_TWITTER: 'how-to-play-twitter',
MASTER_YOUR_BROWSER_TABS: 'master-your-browser-tabs',

};

// Playbook Difficulty
Expand Down Expand Up @@ -197,34 +193,13 @@ export const QuestChainsCategoriesDetails: Record<
'This section is all things regarding DAOs & coordination - from tooling to methods',
image: '',
},
[QuestChainsCategories.METAALLIANCE]: {
name: QuestChainsCategories.METAALLIANCE,
title: 'MetaAlliance',
description:
'Quests that are about building bridges between MetaGame & other communities.',
image: '',
},
[QuestChainsCategories.WELLBEING_SELF_IMPROVEMENT]: {
name: QuestChainsCategories.WELLBEING_SELF_IMPROVEMENT,
[QuestChainsCategories.SELF_ACTUALIZATION]: {
name: QuestChainsCategories.SELF_ACTUALIZATION,
title: 'Self-actualization & Wellbeing',
description:
'Another one we are weak in; open to anything regarding personal wellbeing & self-improvement.',
image: '',
},
[QuestChainsCategories.REGENERATION]: {
name: QuestChainsCategories.REGENERATION,
title: 'Regeneration',
description:
'MetaGame is very much about regeneration - yet failing at it! Consider submitting regen playbooks.',
image: '',
},
[QuestChainsCategories.USING_AI]: {
name: QuestChainsCategories.USING_AI,
title: 'AI Playbooks',
description:
"This is the section we're currently weakest in, but recognize the potential as great as Web3.",
image: '',
},
[QuestChainsCategories.RANDOM]: {
name: QuestChainsCategories.RANDOM,
title: 'Random Game META',
Expand Down Expand Up @@ -661,7 +636,6 @@ export const QuestChainPathsAndPlaybooksDetails: Record<
QuestChainDetails
> = {
...QuestChainPlaybooksDetails,
...QuestChainPlaybooksDetails,
};

export const QuestChains = {
Expand Down
Loading