Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronfigueiredo committed Nov 20, 2024
1 parent 6923756 commit 0d56e3b
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,23 @@ exports[`<EditGasFeesRow /> renders component 1`] = `
>
0.001 ETH
</p>
<p
class="mm-box mm-text mm-text--body-md mm-box--margin-right-2 mm-box--color-text-alternative"
data-testid="native-currency"
>
$1
</p>
<div>
<div
aria-describedby="tippy-tooltip-2"
class=""
data-original-title="0.001234"
data-tooltipped=""
style="display: inline;"
tabindex="0"
>
<p
class="mm-box mm-text mm-text--body-md mm-box--margin-right-2 mm-box--color-text-alternative"
data-testid="native-currency"
>
$1
</p>
</div>
</div>
<button
class="mm-box mm-text mm-button-base mm-button-base--size-sm mm-button-link mm-text--body-md-medium mm-box--padding-0 mm-box--padding-right-0 mm-box--padding-left-0 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-transparent"
data-testid="edit-gas-fee-icon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const DefaultStory = () => (
<EditGasFeesRow
fiatFee="$1"
nativeFee="0.001 ETH"
fiatFeeWith18SignificantDigits="0.001234"
supportsEIP1559={true}
setShowCustomizeGasPopover={() => {}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe('<EditGasFeesRow />', () => {
<EditGasFeesRow
fiatFee="$1"
nativeFee="0.001 ETH"
fiatFeeWith18SignificantDigits="0.001234"
supportsEIP1559={true}
setShowCustomizeGasPopover={() => console.log('open popover')}
/>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const EditGasFeesRow = ({
setShowCustomizeGasPopover,
}: {
fiatFee: string;
fiatFeeWith18SignificantDigits: string;
fiatFeeWith18SignificantDigits: string | null;
nativeFee: string;
supportsEIP1559: boolean;
setShowCustomizeGasPopover: Dispatch<SetStateAction<boolean>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,22 @@ exports[`<GasFeesRow /> renders component 1`] = `
>
0.0001 ETH
</p>
<p
class="mm-box mm-text mm-text--body-md mm-box--color-text-alternative"
>
$1
</p>
<div>
<div
aria-describedby="tippy-tooltip-2"
class=""
data-original-title="0.001234"
data-tooltipped=""
style="display: inline;"
tabindex="0"
>
<p
class="mm-box mm-text mm-text--body-md mm-box--color-text-alternative"
>
$1
</p>
</div>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const DefaultStory = () => (
label="Some kind of fee"
tooltipText="Tooltip text"
fiatFee="$1"
fiatFeeWith18SignificantDigits="0.001234"
nativeFee="0.0001 ETH"
/>
</ConfirmContextProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('<GasFeesRow />', () => {
label="Some kind of fee"
tooltipText="Tooltip text"
fiatFee="$1"
fiatFeeWith18SignificantDigits="0.001234"
nativeFee="0.0001 ETH"
/>,
mockStore,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const GasFeesRow = ({
label: string;
tooltipText: string;
fiatFee: string;
fiatFeeWith18SignificantDigits: string;
fiatFeeWith18SignificantDigits: string | null;
nativeFee: string;
'data-testid'?: string;
}) => {
Expand Down

0 comments on commit 0d56e3b

Please sign in to comment.