Skip to content

Commit addc3e7

Browse files
committed
Fixes
1 parent b71a22e commit addc3e7

File tree

5 files changed

+1962
-1727
lines changed

5 files changed

+1962
-1727
lines changed

components/ErrorBoundary.tsx

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
import React from 'react'
1+
import { Component } from 'react'
22
import { ErrorView, OneColumnCentered } from '@glif/react-components'
33
import { logger } from '../logger'
44
import NodePage from './NodePage'
5+
import { ReactNodeLike } from 'prop-types'
56

6-
interface ErrorState {
7+
type ErrorState = {
78
hasError: boolean
89
}
910

11+
type ErrorProps = {
12+
children: ReactNodeLike
13+
}
14+
1015
// This component catches all uncaught react and syncronous JS errors
1116
// and forwards the user to an error page + sends us the error report
12-
class ErrorBoundary extends React.Component {
13-
constructor(props) {
14-
super(props)
15-
this.state = { hasError: false } as ErrorState
16-
}
17+
class ErrorBoundary extends Component<ErrorProps, ErrorState> {
18+
state: ErrorState = { hasError: false }
1719

1820
static getDerivedStateFromError() {
1921
return { hasError: true }

components/NodePage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function NodePage({ children, ...rest }: PageProps) {
1919
},
2020
{
2121
title: 'Blog',
22-
url: 'https://glif.io/blog'
22+
url: process.env.NEXT_PUBLIC_BLOG_URL
2323
},
2424
{
2525
title: 'Code',

next.config.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,15 @@ module.exports = (phase) => {
2727
env: {
2828
NEXT_PUBLIC_PACKAGE_NAME: pkgjson.name,
2929
NEXT_PUBLIC_PACKAGE_VERSION: pkgjson.version,
30-
NEXT_PUBLIC_HOME_URL: process.env.HOME_URL || 'https://glif.io',
30+
NEXT_PUBLIC_HOME_URL: process.env.HOME_URL || 'https://apps.glif.io',
3131
NEXT_PUBLIC_BLOG_URL: process.env.BLOG_URL || 'https://blog.glif.io/',
3232
NEXT_PUBLIC_WALLET_URL:
33-
process.env.WALLET_URL || 'https://wallet-calibration.glif.link',
34-
NEXT_PUBLIC_SAFE_URL:
35-
process.env.SAFE_URL || 'https://safe-calibration.glif.link',
33+
process.env.WALLET_URL || 'https://wallet.glif.io',
34+
NEXT_PUBLIC_SAFE_URL: process.env.SAFE_URL || 'https://safe.glif.io',
3635
NEXT_PUBLIC_EXPLORER_URL:
37-
process.env.EXPLORER_URL || 'https://explorer-calibration.glif.link',
36+
process.env.EXPLORER_URL || 'https://explorer.glif.io',
3837
NEXT_PUBLIC_VERIFIER_URL:
39-
process.env.VERIFIER_URL || 'https://verify-calibration.glif.link',
38+
process.env.VERIFIER_URL || 'https://verify.glif.io',
4039
NEXT_PUBLIC_SENTRY_DSN: process.env.SENTRY_DSN || '',
4140
NEXT_PUBLIC_SENTRY_ENV: process.env.SENTRY_ENV || '',
4241
NEXT_PUBLIC_NODE_STATUS_API_ADDRESS:

0 commit comments

Comments
 (0)