File tree Expand file tree Collapse file tree 10 files changed +52
-20
lines changed Expand file tree Collapse file tree 10 files changed +52
-20
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,5 @@ interface BitcoinIconProps extends HTMLStyledProps<'img'> {
4
4
size ?: number ;
5
5
}
6
6
export function BitcoinIcon ( { size = 24 } : BitcoinIconProps ) {
7
- return (
8
- < styled . img
9
- width = { size }
10
- height = { size }
11
- src = { 'node_modules/@leather.io/ui/dist-web/assets/icons/bitcoin.svg' }
12
- />
13
- ) ;
7
+ return < styled . img width = { size } height = { size } src = "icons/bitcoin.svg" /> ;
14
8
}
Original file line number Diff line number Diff line change @@ -4,11 +4,5 @@ interface StacksIconProps extends HTMLStyledProps<'img'> {
4
4
size ?: number ;
5
5
}
6
6
export function StacksIcon ( { size = 24 } : StacksIconProps ) {
7
- return (
8
- < styled . img
9
- width = { size }
10
- height = { size }
11
- src = "node_modules/@leather.io/ui/dist-web/assets/icons/stacks.svg"
12
- />
13
- ) ;
7
+ return < styled . img width = { size } height = { size } src = "icons/stacks.svg" /> ;
14
8
}
Original file line number Diff line number Diff line change 1
1
import { FooterLayout as Footer } from './footer.layout' ;
2
2
3
- const year = new Date ( ) . getFullYear ( ) ;
4
-
5
3
function AppFooter ( ) {
6
4
return (
7
5
< Footer >
@@ -49,7 +47,9 @@ function AppFooter() {
49
47
50
48
< Footer . LegalText
51
49
product = "A Trust Machines product"
52
- copyright = { `© ${ year } Leather Wallet, LLC` }
50
+ // Hard coding date as Cloudflare Workers renders new Date() as epoch
51
+ // start time
52
+ copyright = { `© 2025 Leather Wallet, LLC` }
53
53
/>
54
54
</ Footer >
55
55
) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { StackingExplainer } from './components/stacking-explainer';
8
8
export function Earn ( ) {
9
9
return (
10
10
< Page >
11
- < Page . Header title = "Earn " />
11
+ < Page . Header title = "Invest in Stacks " />
12
12
13
13
< styled . h2 textStyle = "heading.05" mt = "space.07" >
14
14
Stack in a pool
Original file line number Diff line number Diff line change
1
+ import { expect } from '@playwright/test' ;
2
+
3
+ import { test } from '.' ;
4
+
5
+ test . describe ( 'Earn page' , ( ) => {
6
+ test ( 'has title' , async ( { page } ) => {
7
+ await page . goto ( '/earn' ) ;
8
+ await expect ( page . getByRole ( 'heading' , { name : 'Invest in Stacks' } ) ) . toBeVisible ( ) ;
9
+ } ) ;
10
+ } ) ;
Original file line number Diff line number Diff line change 1
- import { expect , test } from '@playwright/test' ;
1
+ import { expect } from '@playwright/test' ;
2
+
3
+ import { test } from '.' ;
2
4
3
5
test . describe ( 'Homepage' , ( ) => {
4
6
test ( 'has title' , async ( { page } ) => {
Original file line number Diff line number Diff line change
1
+ import { test as base , expect } from '@playwright/test' ;
2
+
3
+ export const test = base . extend ( {
4
+ page : async ( { page } , use ) => {
5
+ const messages : string [ ] = [ ] ;
6
+ page . on ( 'console' , msg => {
7
+ // Ignore regular log messages; we are only interested in errors.
8
+ if ( msg . type ( ) === 'error' ) {
9
+ messages . push ( `[${ msg . type ( ) } ] ${ msg . text ( ) } ` ) ;
10
+ }
11
+ } ) ;
12
+ // Uncaught (in promise) TypeError + friends are page errors.
13
+ page . on ( 'pageerror' , error => {
14
+ messages . push ( `[${ error . name } ] ${ error . message } ` ) ;
15
+ } ) ;
16
+ await use ( page ) ;
17
+ if ( messages . length ) {
18
+ // eslint-disable-next-line no-console
19
+ console . log ( `Console errors: ${ messages . join ( '\n' ) } ` ) ;
20
+ }
21
+ expect ( messages ) . toStrictEqual ( [ ] ) ;
22
+ } ,
23
+ } ) ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export default tseslint.config(
45
45
} ,
46
46
{
47
47
name : 'web' ,
48
- files : [ 'apps/web/**/*.{ts,tsx}' ] ,
48
+ files : [ 'apps/web/app/ **/*.{ts,tsx}' ] ,
49
49
extends : [ reactConfig , pluginQuery . configs [ 'flat/recommended' ] ] ,
50
50
} ,
51
51
{
You can’t perform that action at this time.
0 commit comments