Skip to content

Commit

Permalink
start tx flow
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Oct 21, 2024
1 parent eff1f90 commit 699e317
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
6 changes: 6 additions & 0 deletions public/locales/en/migrate.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,11 @@
"twitter": "X (Twitter)",
"dao": "DAO forums"
}
},
"details": {
"approve": {
"title": "Approve ENSv2 migration",
"description": "Approving your names for migration now will automatically migrate them at the launch of ENSv2, without additional fees.\nOnly the address that owns the names can approve them, and all eligible names in your address must be approved together."
}
}
}
4 changes: 0 additions & 4 deletions public/locales/en/transactionFlow.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,6 @@
"remove": "Remove Dentity from profile",
"link": "Go to Dentity"
}
},
"approveMigration": {
"title": "Approve ENSv2 migration",
"description": "Approving your names for migration now will automatically migrate them at the launch of ENSv2, without additional fees.\nOnly the address that owns the names can approve them, and all eligible names in your address must be approved together."
}
},
"transaction": {
Expand Down
9 changes: 8 additions & 1 deletion src/pages/migrate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
import { Carousel } from '@app/components/pages/migrate/Carousel'
import { MigrationNamesList } from '@app/components/pages/migrate/MigrationNamesList'
import { useQueryParameterState } from '@app/hooks/useQueryParameterState'
import { useTransactionFlow } from '@app/transaction-flow/TransactionFlowProvider'

import DAOSVG from '../assets/DAO.svg'
import SocialX from '../assets/social/SocialX.svg'
Expand Down Expand Up @@ -244,6 +245,8 @@ export default function Page() {

const [currentTab, setTab] = useQueryParameterState<Tab>('tab', 'ensv2')

const { createTransactionFlow } = useTransactionFlow()

return (
<>
<Main>
Expand Down Expand Up @@ -313,7 +316,11 @@ export default function Page() {
<Button
onClick={() => {
if (isConnected) {
// nothing for now
createTransactionFlow('migrate-names', {
transactions: [
/* smth here */
],
})
} else {
openConnectModal?.()
}
Expand Down
9 changes: 9 additions & 0 deletions src/transaction-flow/intro/MigrateNames.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { useTranslation } from 'react-i18next'

import { Typography } from '@ensdomains/thorin'

export const MigrateNames = () => {
const { t } = useTranslation('migrate')

return <Typography>{t('details.approve.description')}</Typography>
}

0 comments on commit 699e317

Please sign in to comment.