mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
necessary changes to the types
This commit is contained in:
@@ -38,22 +38,25 @@ const getImageMoloch = (title: string) => {
|
||||
};
|
||||
|
||||
type LinkDaoProps = {
|
||||
explorerUrl: string;
|
||||
chain: string;
|
||||
address: string;
|
||||
explorerUrl: string | null;
|
||||
};
|
||||
|
||||
const LinkDao: React.FC<LinkDaoProps> = ({ explorerUrl, children }) => {
|
||||
if (explorerUrl) return <>{children}</>;
|
||||
if (explorerUrl)
|
||||
return (
|
||||
<Link
|
||||
role="group"
|
||||
_hover={{ textDecoration: 'none' }}
|
||||
href={explorerUrl}
|
||||
isExternal
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
|
||||
return (
|
||||
<Link
|
||||
role="group"
|
||||
_hover={{ textDecoration: 'none' }}
|
||||
href={explorerUrl}
|
||||
isExternal
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
return <>{children}</>;
|
||||
};
|
||||
|
||||
type DaoListingProps = {
|
||||
|
||||
Reference in New Issue
Block a user