-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Added FileInput component #343
base: master
Are you sure you want to change the base?
Conversation
File Upload component that display the name of the file selected by user.
added the line: import { FileInput } from './FileInput'; Edited the line: export { UploadProps, FileInput };
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/upload/J4mJTeXnhoNxcj7nyW5pYFTY2vJX |
Change function parameters for FileInput.js for integration with UploadAlt.js
added "antd": "^4.16.13" as dependency
import UploadAlt
Create UploadAlt.js
Added new style to FileInput.js
In order to change extension from .js to .tsx
create FileInput with .tsx extension
style formatting to conform to linting requirements
change function name from inputFileValue to FileContent
Change UseState Variable name from "input" to "content"
Update UseState variable "content" to "filePresent"
Remove braces in file import
Update UploadAlt.tsx
Chow seng fung
This pull request introduces 1 alert when merging 8bafddb into 77f44b8 - view on LGTM.com new alerts:
|
added the rules: "no-shadow": "off", "@typescript-eslint/no-shadow": ["error"]
This pull request introduces 1 alert when merging 77ccbb1 into 77f44b8 - view on LGTM.com new alerts:
|
remove base rules in eslintrc.js
This pull request introduces 1 alert when merging 3f26eae into 77f44b8 - view on LGTM.com new alerts:
|
remove line : ...base,
This pull request introduces 2 alerts when merging bc17a1a into 77f44b8 - view on LGTM.com new alerts:
|
added new rules
This pull request introduces 2 alerts when merging 40c0a90 into 77f44b8 - view on LGTM.com new alerts:
|
"@typescript-eslint/no-shadow": 0, "no-shadow": 0,
This pull request introduces 1 alert when merging 3c9a782 into 77f44b8 - view on LGTM.com new alerts:
|
Create UpdateAlt.tsx and update index.ts
This pull request introduces 7 alerts when merging 9340863 into 77f44b8 - view on LGTM.com new alerts:
|
Add Upload Button to UploadAlt.tsx
Update UploadAlt
This pull request introduces 6 alerts when merging 1a58698 into 77f44b8 - view on LGTM.com new alerts:
|
Added confirmation box
This pull request introduces 2 alerts when merging 3cde813 into 77f44b8 - view on LGTM.com new alerts:
|
The component is able to display the name of the file selected by user.