Skip to content

Commit

Permalink
Merge branch 'feat/safe-sign-text' into tmp/20241101
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed Nov 1, 2024
2 parents 412def1 + 44f4822 commit e21acfa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/ui/views/Approval/components/SignText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,11 @@ const SignText = ({ params }: { params: SignTextProps }) => {
safeInfo={safeInfo}
onCancel={handleDrawerCancel}
onConfirm={handleGnosisConfirm}
confirmations={currentSafeMessage?.safeMessage?.confirmations}
confirmations={
isGnosisAccount
? currentSafeMessage?.safeMessage?.confirmations || []
: undefined
}
/>
</Drawer>
)}
Expand Down
6 changes: 5 additions & 1 deletion src/ui/views/Approval/components/SignTypedData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,11 @@ const SignTypedData = ({ params }: { params: SignTypedDataProps }) => {
safeInfo={safeInfo}
onCancel={handleDrawerCancel}
onConfirm={handleGnosisConfirm}
confirmations={currentSafeMessage?.safeMessage?.confirmations}
confirmations={
isGnosisAccount
? currentSafeMessage?.safeMessage?.confirmations || []
: undefined
}
/>
</Drawer>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Button, Skeleton } from 'antd';
import { isString } from 'lodash';
import React, { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import IconUnknown from 'ui/assets/icon-unknown.svg';

export const GnosisMessageExplain = ({
onView,
Expand Down Expand Up @@ -69,6 +70,8 @@ export const GnosisMessageExplain = ({

return (
<div className="tx-explain">
{/* todo icon */}
<img className="icon icon-explain" src={IconUnknown} />
<span>{content}</span>
<Button
type="primary"
Expand Down
2 changes: 2 additions & 0 deletions src/ui/views/GnosisQueue/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
line-height: 15px;
color: #ffffff;
height: auto;
box-shadow: none !important;
}
}
}
Expand Down Expand Up @@ -143,6 +144,7 @@
}
background-color: #8697ff1a !important;
box-shadow: none;
color: var(--r-blue-default) !important;
}
}
}
Expand Down

0 comments on commit e21acfa

Please sign in to comment.