Skip to content

Commit 9ec000b

Browse files
🐛 fix: leonardo behance link
1 parent 5fb7e7d commit 9ec000b

File tree

9 files changed

+1107
-1336
lines changed

9 files changed

+1107
-1336
lines changed

.jest/setup.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import '@testing-library/jest-dom';
22
import ReactModal from 'react-modal';
3+
import { jest } from '@jest/globals';
34

45
jest.spyOn(ReactModal, 'setAppElement').mockImplementation(() => {});

constants/social-media.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
DiscordSVG,
3+
GitBookSVG,
34
GithubSVG,
45
MediumSVG,
56
TelegramSVG,
@@ -38,4 +39,9 @@ export const SOCIAL_MEDIAS = [
3839
link: 'https://www.youtube.com/@interestprotocol',
3940
Logo: YoutubeSVG,
4041
},
42+
{
43+
title: 'GitBook',
44+
link: 'https://docs.interestprotocol.com/',
45+
Logo: GitBookSVG,
46+
},
4147
];

jest.config.js

+23-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
const nextJest = require('next/jest')
1+
const nextJest = require('next/jest');
22

33
// Providing the path to your Next.js app which will enable loading next.config.js and .env files
4-
const createJestConfig = nextJest({ dir: './' })
4+
const createJestConfig = nextJest({ dir: './' });
55

66
const customJestConfig = {
77
rootDir: './',
8-
setupFilesAfterEnv: ["<rootDir>/.jest/setup.ts"],
98
moduleDirectories: ["node_modules", "<rootDir>/"],
9+
setupFilesAfterEnv: ["<rootDir>/.jest/setup.ts"],
1010
moduleFileExtensions: ['js', 'ts', 'tsx', 'json'],
11-
testPathIgnorePatterns: ['<rootDir>[/\\\\](node_modules|.next)[/\\\\]'],
12-
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(ts|tsx)$'],
11+
testMatch: [
12+
"**/__tests__/**/*.+(ts|tsx|js)",
13+
"**/?(*.)+(spec|test).+(ts|tsx|js)"
14+
],
15+
testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/.next/'],
16+
testEnvironment: 'jest-environment-jsdom',
1317
moduleNameMapper: {
1418
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
1519
'\\.(gif|ttf|eot|svg|png)$': '<rootDir>/__test__/__mocks__/fileMock.js',
@@ -41,4 +45,17 @@ const customJestConfig = {
4145
},
4246
};
4347

44-
module.exports = createJestConfig(customJestConfig);
48+
module.exports = async () => ({
49+
/**
50+
* Using ...(await createJestConfig(customJestConfig)()) to override transformIgnorePatterns
51+
* provided byt next/jest.
52+
*
53+
* @link https://github.com/vercel/next.js/issues/36077#issuecomment-1096635363
54+
*/
55+
...(await createJestConfig(customJestConfig)()),
56+
/**
57+
* @link https://github.com/vercel/next.js/issues/36077#issuecomment-1096698456
58+
* @link https://jestjs.io/docs/ecmascript-modules
59+
*/
60+
transformIgnorePatterns: ['/node_modules/(?!(wagmi|@wagmi)/)'],
61+
});

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"@testing-library/react": "^11.1.0",
8282
"@testing-library/user-event": "^12.1.10",
8383
"@typechain/ethers-v5": "^10.0.0",
84-
"@types/jest": "^26.0.13",
84+
"@types/jest": "^29.4.0",
8585
"@types/node": "^12.0.0",
8686
"@types/ramda": "^0.28.11",
8787
"@types/react": "^17.0.0",
@@ -105,7 +105,9 @@
105105
"eslint-plugin-react-hooks": "^4.2.0",
106106
"eslint-plugin-simple-import-sort": "^7.0.0",
107107
"husky": "^6.0.0",
108-
"jest": "^26.4.2",
108+
"identity-obj-proxy": "^3.0.0",
109+
"jest": "^29.4.3",
110+
"jest-environment-jsdom": "^29.4.3",
109111
"lint-staged": ">=10",
110112
"prettier": "^2.3.0",
111113
"pretty-quick": "^3.1.0",

views/dapp/components/layout/footer/index.tsx

+1-9
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
DexSVG,
2121
EarnSVG,
2222
FaucetSVG,
23-
GitBookSVG,
2423
HorizontalDotsSVG,
2524
MarketSVG,
2625
} from '@/svg';
@@ -56,14 +55,7 @@ const Footer: FC = () => {
5655
>
5756
<Container dapp width="100%">
5857
<Box display={['none', 'none', 'flex']} justifyContent="center">
59-
{[
60-
...SOCIAL_MEDIAS,
61-
{
62-
title: 'Docs',
63-
Logo: GitBookSVG,
64-
link: 'https://docs.interestprotocol.com/',
65-
},
66-
].map((item) => (
58+
{SOCIAL_MEDIAS.map((item) => (
6759
<SocialMediaCard key={v4()} {...item} />
6860
))}
6961
</Box>

views/dapp/components/layout/header/mobile-menu.tsx

+20-28
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { FC } from 'react';
22

33
import { SOCIAL_MEDIAS } from '@/constants/social-media';
44
import { Box, Dropdown, Typography } from '@/elements';
5-
import { BarsSVG, GitBookSVG } from '@/svg';
5+
import { BarsSVG } from '@/svg';
66
import { logGenericEvent } from '@/utils/analytics';
77

88
const MobileMenu: FC = () => {
@@ -27,32 +27,24 @@ const MobileMenu: FC = () => {
2727
</Box>
2828
</Box>
2929
}
30-
data={[
31-
...[
32-
...SOCIAL_MEDIAS,
33-
{
34-
title: 'GitBook',
35-
Logo: GitBookSVG,
36-
link: 'https://docs.interestprotocol.com/',
37-
},
38-
].map(({ title, link }) => ({
39-
value: title,
40-
onSelect: () => parent.open(link),
41-
displayOption: (
42-
<a href={link} target="__blank" rel="noopener noreferrer">
43-
<Typography
44-
px="M"
45-
py="L"
46-
width="100%"
47-
variant="normal"
48-
textAlign="center"
49-
textTransform="uppercase"
50-
>
51-
{title}
52-
</Typography>
53-
</a>
54-
),
55-
})),
30+
data={SOCIAL_MEDIAS.map(({ title, link }) => ({
31+
value: title,
32+
onSelect: () => parent.open(link),
33+
displayOption: (
34+
<a href={link} target="__blank" rel="noopener noreferrer">
35+
<Typography
36+
px="M"
37+
py="L"
38+
width="100%"
39+
variant="normal"
40+
textAlign="center"
41+
textTransform="uppercase"
42+
>
43+
{title}
44+
</Typography>
45+
</a>
46+
),
47+
})).concat([
5648
{
5749
value: 'feedback',
5850
onSelect: () => parent.open('https://forms.gle/aDP4wHvshLPKkKv97'),
@@ -82,7 +74,7 @@ const MobileMenu: FC = () => {
8274
</Box>
8375
),
8476
},
85-
]}
77+
])}
8678
/>
8779
</>
8880
);

views/dapp/views/dex-pool-details/components/add-liquidity-card/add-liquidity-card-content.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const AddLiquidityCardContent: FC<AddLiquidityCardContentProps> = ({
155155
width="100%"
156156
variant="primary"
157157
disabled={loading}
158-
bg="bottomBackground"
158+
bg="accent"
159159
hover={{ bg: 'accentActive' }}
160160
onClick={() => handleApproveToken(address, symbol)}
161161
>

views/home/components/team/team.data.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const TEAM_MEMBERS = [
120120
linkedin:
121121
'https://www.linkedin.com/in/leonardo-hernandez-celli-81499093/',
122122
dribbble: 'https://dribbble.com/lhcelli',
123-
behance: 'https://dribbble.com/lhcelli',
123+
behance: 'https://www.behance.net/lhcelli',
124124
},
125125
bio: 'landingPage.bioLeonardo',
126126
depsBio: {

0 commit comments

Comments
 (0)