This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nested delegate call warnings (#3122)
* feat: Add nested delegate call warnings * chore: Refactor delegate call warnings * chore: Remove padding
- Loading branch information
Showing
4 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/routes/safe/components/Transactions/TxList/DelegateCallWarning.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,19 @@ | ||
import { Text } from '@gnosis.pm/safe-react-components' | ||
import { ReactElement } from 'react' | ||
|
||
const DelegateCallWarning = ({ isKnown }: { isKnown: boolean }): ReactElement => { | ||
if (!isKnown) { | ||
return ( | ||
<Text size="xl" strong as="span" color="error"> | ||
⚠️ Unexpected Delegate Call | ||
</Text> | ||
) | ||
} | ||
return ( | ||
<Text size="xl" strong as="span"> | ||
Delegate Call | ||
</Text> | ||
) | ||
} | ||
|
||
export default DelegateCallWarning |
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
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