Skip to content

Commit 1dfb08f

Browse files
authored
fix(linea-ens-app): failing build process (#355)
1 parent cfb9d87 commit 1dfb08f

File tree

6 files changed

+123
-28
lines changed

6 files changed

+123
-28
lines changed

packages/linea-ens-app/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ cd packages/linea-ens-app
101101
pnpm dev:glocal
102102
```
103103

104-
You'll need an account with POH to fully use the local env, if you don't, you can get
105-
it [here] (https://poh.linea.build/).
104+
You'll need an account with POH to fully use the local env, if you don't, you can get it
105+
via [Linea Hub] (https://linea.build/hub/).
106106

107107
- Then browse http://localhost:3000/.
108108
- Import one of the hardhat test accounts in your MetaMask to have funds (eg, private key:
@@ -114,7 +114,7 @@ it [here] (https://poh.linea.build/).
114114
- Add this config:
115115

116116
| Setting | Value |
117-
| --------------- | --------------------- |
117+
| --------------- | --------------------- |
118118
| Network name | Localhost 8545 |
119119
| New RPC URL | http://127.0.0.1:8545 |
120120
| Chain ID | 1337 |
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference path="./.next/types/routes.d.ts" />
43

54
// NOTE: This file should not be edited
65
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

packages/linea-ens-app/src/components/pages/profile/[name]/registration/steps/PohCheck/PohCheck.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const ActionButton = ({
8787
return (
8888
<Button
8989
data-testid="next-button"
90-
onClick={() => window.open('https://poh.linea.build/', '_blank')}
90+
onClick={() => window.open('https://linea.build/hub/', '_blank')}
9191
>
9292
{t('steps.pohCheck.getPoh')}
9393
</Button>

packages/linea-ens-app/src/components/pages/profile/[name]/tabs/OwnershipTab/sections/ExpirySection/ExpirySection.test.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@ vi.mock('./hooks/useExpiryActions', () => ({
2525
useExpiryActions: ({ name }: any) => {
2626
if (name === 'test.eth')
2727
return [
28-
{
29-
label: 'action.setReminder',
30-
type: 'set-reminder',
31-
icon: <div>ICON</div>,
32-
primary: false,
33-
expiryDate: new Date(),
34-
},
3528
{
3629
label: 'action.extend',
3730
type: 'extend',
@@ -46,20 +39,6 @@ vi.mock('./hooks/useExpiryActions', () => ({
4639
}))
4740

4841
describe('ExpirySection', () => {
49-
it('should be able to open earnify button modal', async () => {
50-
render(<ExpirySection name="test.eth" details={{} as any} />)
51-
expect(screen.getByText('action.setReminder')).toBeVisible()
52-
expect(screen.getByText('action.extend')).toBeVisible()
53-
await userEvent.click(screen.getByText('action.setReminder'))
54-
await waitFor(async () => {
55-
expect(screen.getByText('tabs.more.misc.reminderOptions.bankless')).toBeVisible()
56-
await userEvent.click(screen.getByText('tabs.more.misc.reminderOptions.bankless'))
57-
})
58-
await waitFor(() => {
59-
expect(screen.getByText('tabs.more.misc.bankless.title')).toBeVisible()
60-
})
61-
})
62-
6342
it('should be able to call show extend modal', async () => {
6443
render(<ExpirySection name="test.eth" details={{} as any} />)
6544
expect(screen.getByText('action.extend')).toBeVisible()

packages/linea-ens-app/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959
"**/*.ts",
6060
"**/*.tsx",
6161
"next.config.mjs",
62-
"vitest.config.mts",
6362
"test/*.mts",
6463
"test/**/*.ts",
6564
"typings-custom/generated/*.d.ts",
66-
"typings-custom/local-contracts.d.ts"
65+
"typings-custom/local-contracts.d.ts",
66+
"typings-custom/**/*.d.ts"
6767
],
6868
"exclude": [
6969
"**/*.ignore.ts",
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
declare module 'react-confetti' {
2+
import { CSSProperties, RefObject } from 'react'
3+
4+
export interface IConfettiOptions {
5+
/**
6+
* Width of the canvas element
7+
*/
8+
width?: number
9+
/**
10+
* Height of the canvas element
11+
*/
12+
height?: number
13+
/**
14+
* Number of confetti pieces to render
15+
* @default 200
16+
*/
17+
numberOfPieces?: number
18+
/**
19+
* Slows movement of pieces (lower number is faster)
20+
* @default 5000
21+
*/
22+
friction?: number
23+
/**
24+
* Force of "wind" on pieces
25+
* @default 0
26+
*/
27+
wind?: number
28+
/**
29+
* Force of gravity on pieces
30+
* @default 0.1
31+
*/
32+
gravity?: number
33+
/**
34+
* Initial velocity in the X axis
35+
* @default 4
36+
*/
37+
initialVelocityX?: { min: number; max: number } | number
38+
/**
39+
* Initial velocity in the Y axis
40+
* @default 10
41+
*/
42+
initialVelocityY?: { min: number; max: number } | number
43+
/**
44+
* Shape of confetti.
45+
* @default 'All'
46+
*/
47+
pieceShape?: 'Circle' | 'Square' | 'Strip' | 'All'
48+
/**
49+
* Width of confetti pieces
50+
* @default { min: 5, max: 20 }
51+
*/
52+
pieceWidth?: {
53+
min: number
54+
max: number
55+
} | number
56+
/**
57+
* Height of confetti pieces
58+
* @default { min: 5, max: 20 }
59+
*/
60+
pieceHeight?: {
61+
min: number
62+
max: number
63+
} | number
64+
/**
65+
* Array of colors to choose from.
66+
*/
67+
colors?: string[]
68+
/**
69+
* Opacity of the confetti pieces
70+
* @default 1.0
71+
*/
72+
opacity?: number
73+
/**
74+
* Whether to recycle confetti pieces (animation will repeat)
75+
* @default true
76+
*/
77+
recycle?: boolean
78+
/**
79+
* Run the animation
80+
* @default true
81+
*/
82+
run?: boolean
83+
/**
84+
* Show debugging information for tweaking config
85+
* @default false
86+
*/
87+
debug?: boolean
88+
/**
89+
* Canvas style properties
90+
*/
91+
style?: CSSProperties
92+
/**
93+
* Canvas className
94+
*/
95+
className?: string
96+
/**
97+
* Manually set a reference to the canvas element
98+
*/
99+
canvasRef?: RefObject<HTMLCanvasElement> | ((instance: HTMLCanvasElement | null) => void) | null
100+
/**
101+
* Callback when animation is complete (when recycle is false)
102+
*/
103+
onConfettiComplete?: (confetti?: any) => void
104+
/**
105+
* Additional canvas properties
106+
*/
107+
drawShape?: (context: CanvasRenderingContext2D) => void
108+
/**
109+
* Tweens for controlling the animation
110+
*/
111+
tweenDuration?: number
112+
tweenFunction?: (currentTime: number, startValue: number, changeInValue: number, duration: number) => number
113+
}
114+
115+
export default function Confetti(props: IConfettiOptions): JSX.Element
116+
}
117+

0 commit comments

Comments
 (0)