-
Notifications
You must be signed in to change notification settings - Fork 364
Conversation
…component to our Providers file
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice improvement dude!
const safeAddress = extractSafeAddress() | ||
const appsPath = generateSafeRoute(SAFE_ROUTES.APPS, { | ||
shortName: getShortName(), | ||
safeAddress, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before merging, let's use this hook (#3826) or I'll merge main into that PR and edit it there (depending on which one makes it through QA first).
Please leave this comment unresolved.
<SafeAppContainer size={size} layout initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}> | ||
<StyledAppCard size={size}> | ||
<LogoContainer size={size}> | ||
<SafeAppLogoSK size={size} /> | ||
</LogoContainer> | ||
<DescriptionContainer size={size}> | ||
<SafeAppTitleSK /> | ||
<SafeAppDescriptionSK /> | ||
<SafeAppDescriptionSK /> | ||
</DescriptionContainer> | ||
</StyledAppCard> | ||
</SafeAppContainer> | ||
) | ||
} | ||
|
||
return ( | ||
<SafeAppContainer size={size} layout initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from size
, you're using the same values on both SafeAppContainer
components. Are we using this container elsewhere or can we abstract them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmm what do you mean with abstract them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps just have them fixed in the component so we don't have to pass them via props at all, or create a safeContainProps
and spread them onto both. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For size
, yes, but I meant the others. Can we not just hardcode those to the component itself? They are the same values for both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean this?
const SafeAppContainer = styled(motion.div).attrs({
layout: true,
initial: { opacity: 0 },
animate: { opacity: 1 },
exit: { opacity: 0 },
})`
position: relative;
display: flex;
instead of this?
<SafeAppContainer size={size} layout initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
<IconBtn onClick={shareSafeApp} aria-label={`copy ${safeApp.name} Safe App share link to clipboard`}> | ||
<Icon size="md" type="share" tooltip="copy share link to clipboard" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<IconBtn onClick={shareSafeApp} aria-label={`copy ${safeApp.name} Safe App share link to clipboard`}> | |
<Icon size="md" type="share" tooltip="copy share link to clipboard" /> | |
<IconBtn onClick={shareSafeApp} aria-label={`Copy shareable ${safeApp.name} Safe App link to clipboard`}> | |
<Icon size="md" type="share" tooltip="Copy shareable link to clipboard" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @liliiaorlenko what is the best label for these tooltips?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
“Copy share link”
“Unpin from the Safe Apps”
“Remove Custom Safe App”
Lets keep it short
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unpin Safe App
:)
* Add analytics for the Share App feature * Improve landing tracking
…ct into new-safe-app-card-design
ESLint Summary View Full Report
Report generated by eslint-plus-action |
What it solves
Resolves #413
Figma
Screenshots