Skip to content

Commit

Permalink
Show creator data in three rows on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Dec 13, 2023
1 parent f329e3a commit 1d7f08d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions src/app/components/Account/ContractCreatorInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FC } from 'react'
import { SearchScope } from '../../../types/searchScope'
import { Trans, useTranslation } from 'react-i18next'
import { useTranslation } from 'react-i18next'
import { TransactionLink } from '../Transactions/TransactionLink'
import {
Layer,
Expand Down Expand Up @@ -60,15 +60,8 @@ export const ContractCreatorInfo: FC<{
}}
>
<TxSender scope={scope} txHash={creationTxHash} />
<Box>
<Trans
t={t}
i18nKey="contract.createdAt"
components={{
TransactionLink: <TransactionLink scope={scope} hash={creationTxHash} alwaysTrim />,
}}
/>
</Box>
<Box>{t('contract.createdAt')}</Box>
<TransactionLink scope={scope} hash={creationTxHash} alwaysTrim />
</Box>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"copyButton": "Copy {{subject}}",
"creationByteCode": "Creation ByteCode",
"creator": "Creator",
"createdAt": "at <TransactionLink>",
"createdAt": "at",
"noCode": "There is no bytecode on record for this account. (Are you sure this is a contract?)",
"title": "Contract",
"runtimeByteCode": "Runtime ByteCode",
Expand Down

0 comments on commit 1d7f08d

Please sign in to comment.