Skip to content

Commit

Permalink
chore(tx-builder): remove gnosis-safe.io domain references (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanra authored Sep 21, 2023
1 parent e29bdd6 commit f2f9cb6
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 153 deletions.
3 changes: 3 additions & 0 deletions .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ inputs:
react-app-mmi-environment:
description: MMI environment
required: true
react-app-walletconnect-project-id:
description: WalletConnect Project ID
required: true

runs:
using: composite
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/safe-apps-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: Set main Safe Apps base URL
run: |
echo "SAFE_APPS_BASE_URL=https://apps.gnosis-safe.io" >> $GITHUB_ENV
echo "SAFE_APPS_BASE_URL=https://apps-portal.safe.global" >> $GITHUB_ENV
if: ${{ github.ref == 'refs/heads/main' || github.event.schedule == '0 9 * * 1-5' }}

- name: Checkout safe-react-apps
Expand Down
4 changes: 0 additions & 4 deletions apps/tx-builder/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
SAVE_BATCH_PATH,
TRANSACTION_LIBRARY_PATH,
} from './routes/routes'
import Banner from './components/Banner'

const App = () => {
return (
Expand All @@ -41,9 +40,6 @@ const App = () => {
{/* Transaction Library Screen */}
<Route path={TRANSACTION_LIBRARY_PATH} element={<TransactionLibrary />} />
</Routes>

{/* Banner */}
<Banner />
</>
)
}
Expand Down
109 changes: 0 additions & 109 deletions apps/tx-builder/src/components/Banner/index.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions apps/tx-builder/src/components/Banner/styles.module.css

This file was deleted.

8 changes: 0 additions & 8 deletions apps/tx-builder/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,3 @@ export const evalTemplate = (templateUri: string, data: Record<string, string>):
const TEMPLATE_REGEX = /\{\{([^}]+)\}\}/g
return templateUri.replace(TEMPLATE_REGEX, (_: string, key: string) => data[key])
}

const OLD_BASE_URL = 'https://apps.gnosis-safe.io'
export const OLD_TX_BUILDER_URL = `${OLD_BASE_URL}/tx-builder`

const NEW_BASE_URL = 'https://apps-portal.safe.global'
export const NEW_TX_BUILDER_URL = `${NEW_BASE_URL}/tx-builder`

export const isOldDomain = decodeURIComponent(window.location.href).includes(OLD_TX_BUILDER_URL)
1 change: 0 additions & 1 deletion cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ if (drainSafeUrl && drainSafeUrl.includes('safereactapps.review-react-hr.5afe.de
warningCheckedCustomApps.push(new URL(drainSafeUrl).origin)
} else {
warningCheckedCustomApps = [
'https://apps.gnosis-safe.io',
'https://safe-apps.dev.5afe.dev',
'https://apps-portal.safe.global',
]
Expand Down

0 comments on commit f2f9cb6

Please sign in to comment.