-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/folio-org/ui-linked-data …
…into fix/UILD-410-tests-sonar-and-issues
- Loading branch information
Showing
30 changed files
with
320 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const DEFAULT_LOCALE = 'en'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/components/ModalDuplicateImportedResource/ModalDuplicateImportedResource.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.duplicate-imported-resource { | ||
padding-left: 0; | ||
padding-right: 0; | ||
|
||
> * { | ||
padding: 0 1.5rem 0 1.5rem; | ||
} | ||
|
||
&-contents { | ||
padding: 0.75rem 1.5rem; | ||
margin: 0.75rem 0; | ||
|
||
border-top: 1px solid rgba(0, 0, 0, 0.1); | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.modal-controls { | ||
justify-content: space-between; | ||
} | ||
|
||
.title { | ||
font-size: 1rem; | ||
} | ||
|
||
.modal-header { | ||
justify-content: space-between; | ||
|
||
.empty-block { | ||
min-width: 1.5rem; | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/components/ModalDuplicateImportedResource/ModalDuplicateImportedResource.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { memo } from 'react'; | ||
import { FormattedMessage, useIntl } from 'react-intl'; | ||
import { Modal } from '@components/Modal'; | ||
import { useRecoilState } from 'recoil'; | ||
import state from '@state'; | ||
import { useContainerEvents } from '@common/hooks/useContainerEvents'; | ||
import './ModalDuplicateImportedResource.scss'; | ||
|
||
export const ModalDuplicateImportedResource = memo(() => { | ||
const [isDuplicateImportedResourceModalOpen, setIsDuplicateImportedResourceModalOpen] = useRecoilState( | ||
state.ui.isDuplicateImportedResourceModalOpen, | ||
); | ||
const { formatMessage } = useIntl(); | ||
const { dispatchNavigateToOriginEventWithFallback } = useContainerEvents(); | ||
|
||
return ( | ||
<Modal | ||
className="duplicate-imported-resource" | ||
isOpen={isDuplicateImportedResourceModalOpen} | ||
title={formatMessage({ id: 'ld.duplicateImportWarn' })} | ||
submitButtonLabel={formatMessage({ id: 'ld.continue' })} | ||
submitButtonDisabled | ||
alignTitleCenter | ||
cancelButtonLabel={formatMessage({ id: 'ld.backToInventory' })} | ||
onClose={() => setIsDuplicateImportedResourceModalOpen(false)} | ||
onCancel={dispatchNavigateToOriginEventWithFallback} | ||
> | ||
<div className="duplicate-imported-resource-contents" data-testid="modal-duplicate-imported-resource"> | ||
<FormattedMessage id="ld.rdPropertiesMatchContinue" /> | ||
</div> | ||
</Modal> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { ModalDuplicateImportedResource } from './ModalDuplicateImportedResource'; |
20 changes: 16 additions & 4 deletions
20
src/components/PreviewExternalResourceControls/PreviewExternalResourceControls.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.