-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Fix strictNullCheck errors in examples #9833
Conversation
@@ -113,7 +113,7 @@ const PostCreate = () => { | |||
<FileInput | |||
source="pdffile" | |||
label="PDF-Template" | |||
accept="application/pdf" | |||
accept={{ 'application/pdf': ['.pdf'] }} |
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.
Shouldn't we update the doc, too?
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.
Updated
I think we should add the typescheck of the simple example to the typecheck CI step |
Added |
@@ -72,7 +72,7 @@ Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and | |||
Equivalent of [the `accept` attribute of an `<input type="file">`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept). `accept` must be a valid [MIME type](https://www.iana.org/assignments/media-types/media-types.xhtml), according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension. | |||
|
|||
```jsx | |||
<FileInput source="attachments" accept="application/pdf"> | |||
<FileInput source="attachments" accept={{ 'application/pdf': ['.pdf'] }}> |
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.
Can you also add a mention about this change in the Upgrade guide?
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.
Added
.github/workflows/test.yml
Outdated
with: | ||
install-command: yarn --immutable | ||
- name: Build | ||
run: make build |
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.
Why do you need to build here? It shouldn't be necessary
.github/workflows/test.yml
Outdated
@@ -67,6 +67,27 @@ jobs: | |||
env: | |||
CI: true | |||
|
|||
simple-example: |
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.
Can't you just add a step in the typecheck workflow?
f921c56
to
b0e1b62
Compare
No description provided.