-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update styles for Modal and transaction table
- Loading branch information
Showing
11 changed files
with
199 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...ActionSidebar/partials/forms/ArbitraryTxsForm/partials/AddTransactionModal/translation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { defineMessages } from 'react-intl'; | ||
|
||
export const displayName = | ||
'v5.common.ActionSidebar.partials.ArbitraryTxsForm.partials.AddTransactionModal'; | ||
|
||
export const MSG = defineMessages({ | ||
title: { | ||
id: `${displayName}.title`, | ||
defaultMessage: 'Contract interaction', | ||
}, | ||
description: { | ||
id: `${displayName}.description`, | ||
defaultMessage: | ||
'Provide the contract address you want to interact with it. We will try to generate the ABI if found, otherwise, you can enter it in manually. Then select the action you want to take.', | ||
}, | ||
link: { | ||
id: `${displayName}.link`, | ||
defaultMessage: 'Learn more about contract interactions', | ||
}, | ||
contractAddressField: { | ||
id: `${displayName}.contractAddressField`, | ||
defaultMessage: 'Target contract address', | ||
}, | ||
contractAddressPlaceholder: { | ||
id: `${displayName}.contractAddressPlaceholder`, | ||
defaultMessage: 'Enter contract address', | ||
}, | ||
abiJsonField: { | ||
id: `${displayName}.abiJsonField`, | ||
defaultMessage: 'ABI/JSON', | ||
}, | ||
methodField: { | ||
id: `${displayName}.methodField`, | ||
defaultMessage: 'Select a method to interact with', | ||
}, | ||
methodPlaceholder: { | ||
id: `${displayName}.methodPlaceholder`, | ||
defaultMessage: 'Select method', | ||
}, | ||
toField: { | ||
id: `${displayName}.toField`, | ||
defaultMessage: '_to (address)', | ||
}, | ||
toPlaceholder: { | ||
id: `${displayName}.toPlaceholder`, | ||
defaultMessage: 'Enter value', | ||
}, | ||
amountField: { | ||
id: `${displayName}.amountField`, | ||
defaultMessage: '_amount (uint256)', | ||
}, | ||
amountPlaceholder: { | ||
id: `${displayName}.amountPlaceholder`, | ||
defaultMessage: 'Enter value', | ||
}, | ||
submitButton: { | ||
id: `${displayName}.submitButton`, | ||
defaultMessage: 'Confirm', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...r/partials/forms/ArbitraryTxsForm/partials/ArbitraryTransactionsTable/CellDescription.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React, { type FC } from 'react'; | ||
|
||
interface CellDescriptionProps { | ||
data: { | ||
title: string; | ||
value: string; | ||
}[]; | ||
} | ||
|
||
const CellDescription: FC<CellDescriptionProps> = ({ data }) => { | ||
return ( | ||
<div> | ||
{data.map(({ title, value }) => { | ||
return ( | ||
<span className="mb-3 flex flex-col"> | ||
<b className="text-gray-900">{title}:</b>{' '} | ||
<span className="text-gray-600">{value}</span> | ||
</span> | ||
); | ||
})} | ||
</div> | ||
); | ||
}; | ||
export default CellDescription; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.