Skip to content
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

UIQM-522 Create/Derive a new MARC bib record & Create a MARC holdings | Default state of Save & close button should be disabled. #628

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

BogdanDenis
Copy link
Contributor

Description

Create/Derive a new MARC bib record & Create a MARC holdings | Default state of Save & close button should be disabled.

Screenshots

chrome_DELBoPhQJe.mp4

Issues

UIQM-522

… | Default state of Save & close button should be disabled.
@BogdanDenis BogdanDenis requested a review from a team December 4, 2023 14:57
Copy link

github-actions bot commented Dec 4, 2023

Jest Unit Test Statistics

    1 files  ±0    39 suites  ±0   2m 25s ⏱️ +11s
321 tests +1  321 ✔️ +1  0 💤 ±0  0 ±0 
322 runs  +1  322 ✔️ +1  0 💤 ±0  0 ±0 

Results for commit 0712312. ± Comparison against base commit 7a0515c.

♻️ This comment has been updated with latest results.

@BogdanDenis BogdanDenis requested a review from a team December 5, 2023 09:03
const saveFormDisabled = action === QUICK_MARC_ACTIONS.EDIT
? pristine || submitting
: submitting;
const saveFormDisabled = useMemo(() => {
Copy link

Choose a reason for hiding this comment

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

I think useMemo is a little bit overhead here, because there are no huge re-calculations and it may cost more then improves. What about replace it with

const saveFormDisabled = submitting ? true : pristine;

Copy link

sonarqubecloud bot commented Dec 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@BogdanDenis BogdanDenis merged commit 72457a7 into master Dec 5, 2023
5 checks passed
@BogdanDenis BogdanDenis deleted the UIQM-522 branch December 5, 2023 16:12
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.

3 participants