Skip to content

Responsive => TypeScript#217

Merged
mdespuits merged 5 commits intomasterfrom
responsive-ts
Jul 1, 2020
Merged

Responsive => TypeScript#217
mdespuits merged 5 commits intomasterfrom
responsive-ts

Conversation

@mdespuits
Copy link
Copy Markdown
Contributor

I tried to do this a bit more piecemeal, but it seems like there are too many inter-dependencies for that to happen cleanly. Went ahead and converted everything related to Responsive-ness to TS.

Fixes #189

@@ -0,0 +1,4 @@
import { createContext } from 'react';

const Context = createContext<string[] | undefined>(undefined);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to be explicit about defaultValue and set to undefined to preserve current behavior. See DefinitelyTyped/DefinitelyTyped#24509 (comment) for the explanation

.add('Overview', () => (
<div>
<Container readOnly style={{ resize: 'both' }}>
<Container readOnly className="resize">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay Tailwind!! 🎉

Copy link
Copy Markdown
Contributor

@pixelbandito pixelbandito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of small change requests, couple of nitpicks.
Overall pretty sweet!

Comment thread src/components/Responsive/Element/Element.tsx
Comment thread src/components/Responsive/Grid/Grid.tsx
Comment thread src/components/Responsive/Hidden/Hidden.tsx Outdated
Comment thread src/components/Responsive/Hidden/Hidden.test.tsx Outdated
Comment thread src/components/Responsive/Visible/Visible.test.tsx Outdated
Comment thread src/components/Responsive/story.tsx
@mdespuits mdespuits requested a review from pixelbandito June 29, 2020 15:58
Copy link
Copy Markdown
Contributor

@pixelbandito pixelbandito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌻🥪

@mdespuits mdespuits merged commit b314fa6 into master Jul 1, 2020
@mdespuits mdespuits deleted the responsive-ts branch July 1, 2020 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convert all Responsive subcomponents to TypeScript

2 participants