Closed Srayash closed 4 days ago
The changes in AvatarEditModal.tsx
involve updating the disabled
property of the upload button in the modal. The condition has been modified to disable the button if either the upload process is ongoing or no file is selected. This adjustment aims to enhance user experience by preventing submissions without a selected file, while the overall functionality and structure of the modal remain unchanged.
File | Change Summary |
---|---|
src/components/Common/AvatarEditModal.tsx | Updated disabled property of the upload button to disabled={isProcessing || !selectedFile} . |
Objective | Addressed | Explanation |
---|---|---|
Disable Save button if no image is selected (#9110) | β |
π In the meadow, I hop and play,
With buttons that guide the way.
No more clicks without a file,
Just a smile, oh what a while!
Uploads now are safe and sound,
In my burrow, joy is found! πΌ
[!WARNING] There were issues while running some tools. Please review the errors and either fix the toolβs configuration or disable the tool if itβs a critical failure.
π§ eslint
> If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.src/components/Common/AvatarEditModal.tsx
Oops! Something went wrong! :( ESLint: 8.57.1 Error: Failed to load parser '@typescript-eslint/parser' declared in '.eslintrc.json': Cannot find module '@typescript-eslint/parser' Require stack: - /.eslintrc.json at Module._resolveFilename (node:internal/modules/cjs/loader:1248:15) at Function.resolve (node:internal/modules/helpers:145:19) at Object.resolve (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2346:46) at ConfigArrayFactory._loadParser (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3325:39) at ConfigArrayFactory._normalizeObjectConfigDataBody (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3099:43) at _normalizeObjectConfigDataBody.next () at ConfigArrayFactory._normalizeObjectConfigData (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3040:20) at _normalizeObjectConfigData.next ( ) at ConfigArrayFactory.loadInDirectory (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2886:28) at CascadingConfigArrayFactory._loadConfigInAncestors (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3871:46)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | dbb4b67b73d9867cc2e301c1add9895104618bce |
Latest deploy log | https://app.netlify.com/sites/care-ohc/deploys/673571064fe29900086e7613 |
Deploy Preview | https://deploy-preview-9111--care-ohc.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
LGTM
@Srayash Your efforts have helped advance digital healthcare and TeleICU systems. :rocket: Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! :raised_hands:
Proposed Changes
Save
button if the user selects no file to update/set as facility cover.@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
New Features
Bug Fixes