diff --git a/apps/explorer/src/components/orders/OrderHooksDetails/HookItem/index.tsx b/apps/explorer/src/components/orders/OrderHooksDetails/HookItem/index.tsx index b80bb6d9b6..c21e92859b 100644 --- a/apps/explorer/src/components/orders/OrderHooksDetails/HookItem/index.tsx +++ b/apps/explorer/src/components/orders/OrderHooksDetails/HookItem/index.tsx @@ -11,42 +11,49 @@ export function HookItem({ item, number }: { item: HookToDappMatch; number: numb return ( - {item.dapp ? ( - -

- #{number} - {item.dapp.name} {item.dapp.name}{' '} - {showDetails ? '[-] Show less' : '[+] Show more'} -

- - {showDetails && ( -
-

- Version: {item.dapp.version} -

-

- Description: {item.dapp.descriptionShort} -

-

- Website: - - {item.dapp.website} - -

-

- Call Data: {item.hook.callData} -

-

- Gas Limit: {item.hook.gasLimit} -

-

- Target: {item.hook.target} -

-
+ +

+ #{number} -{' '} + {item.dapp ? ( + <> + {item.dapp.name} {item.dapp.name}{' '} + + ) : ( + 'Unknown hook dapp' )} - - ) : ( -

Unknown hook dapp
- )} + {showDetails ? '[-] Show less' : '[+] Show more'} +

+ + {showDetails && ( +
+ {item.dapp && ( + <> +

+ Version: {item.dapp.version} +

+

+ Description: {item.dapp.descriptionShort} +

+

+ Website: + + {item.dapp.website} + +

+ + )} +

+ Call Data: {item.hook.callData} +

+

+ Gas Limit: {item.hook.gasLimit} +

+

+ Target: {item.hook.target} +

+
+ )} +
) }