-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DownloadImageModal component #17
Conversation
29caf00
to
81f19c0
Compare
c27f7e7
to
f584d08
Compare
f584d08
to
e6ece62
Compare
sorry for removing the contribution @drskullster 🙏 🙏 🙏 🙏 |
e6ece62
to
7f47343
Compare
52296c7
to
29ed598
Compare
8df11ce
to
d272696
Compare
d272696
to
b41b00c
Compare
@@ -32,7 +32,9 @@ const preview: Preview = { | |||
decorators: [ | |||
(Story) => ( | |||
<ThemeProvider theme={theme}> | |||
<Story /> | |||
<ScopedCssBaseline> |
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.
Just to make sure, I believe @drskullster mentioned he was going to add this in a standalone PR. Was using this agreed upon?
); | ||
|
||
export const transformVersions = (versions: OsVersion[]) => { | ||
// Get a single object per stripped version, with both variants of it included (if they exist). It expects a sorted ` |
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.
It expects a sorted `
Perhaps I am just not understanding, is this a complete thought? 😓
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.
nice catch, that was an old comment, not sure where it come from, btw it was probably a sorted OsVersion array
. I'll remove it as it is not really necessary.
@@ -0,0 +1,139 @@ | |||
export interface Dictionary<T> { |
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.
Just curious, I don't want to complicate this PR further so we can leave it as is regardless of your answer:
Did we just bring these typings over from rendition or did you go through them all and filter out anything we no longer need?
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.
I should have removed all unnecessary types. Next step would be to unify what is used in multiple places
> | ||
<Box display="flex" flexDirection="column"> | ||
<FormControlLabel | ||
sx={{ opacity: isDisabled ? 0.6 : 1 }} |
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.
Is 0.6 the opacity we use everywhere else? Asking because I've seen us using 0.4 in other places (but it could easily have been for a different case)
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.
we should make a generic "disabled" rule in the theme adding it in design-tokens first. For now I've switched to 0.4 which is probably better.
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.
Agree
a643b34
to
bccb3cd
Compare
Change-type: minor
8e506f9
to
3bc7c0c
Compare
Change-type: minor