Skip to content

Commit 0715cda

Browse files
Merge pull request #26 from gnosischain/enabling-reviewapps
Enable PR previews
2 parents bc5d33d + 2e28fad commit 0715cda

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/pr-preview.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PR-Preview
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
env:
8+
REACT_APP_NETWORK_IDS: "100,10200"
9+
# Ref: https://create-react-app.dev/docs/using-the-public-folder/
10+
# Scope of Public URL: rewrite href base path to the one specified by PUBLIC_URL.
11+
PUBLIC_URL: "./"
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version-file: 'package.json'
22+
23+
- name: NPM Install and Build
24+
run: |
25+
npm install
26+
npm run build
27+
28+
- name: Configure AWS Credentials
29+
uses: aws-actions/configure-aws-credentials@v1
30+
with:
31+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
32+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
33+
aws-region: ${{ secrets.AWS_REGION }}
34+
35+
- name: Deploy website to pr-review
36+
run: aws s3 sync ./build/ s3://${{ secrets.AWS_BUCKET_NAME }}/pr-${{ github.event.number }}/ --delete

src/hooks/use-wallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useCallback, useEffect, isValidElement } from 'react';
1+
import { useState, useCallback, useEffect } from 'react';
22
import { SafeAppWeb3Modal } from '@gnosis.pm/safe-apps-web3modal';
33
import WalletConnectProvider from '@walletconnect/web3-provider';
44
import WalletLink from 'walletlink';

0 commit comments

Comments
 (0)