@@ -3,11 +3,12 @@ import {format, subSeconds} from "date-fns"
33//import deAT from 'date-fns/locale/de-AT/index'
44//import {XSD_DATA_TYPE_PREFIX, XDD_DATA_TYPE_PREFIX} from "./constants"
55import { FiCopy } from "react-icons/fi"
6- import React from "react"
6+ import React , { useState } from "react"
77import { VscGitPullRequestDraft } from "react-icons/vsc"
88import { VscGitPullRequest } from "react-icons/vsc"
99import { VscCheck } from "react-icons/vsc"
1010import { AiOutlineCheck } from "react-icons/ai"
11+ import Stack from 'react-bootstrap/Stack' ;
1112import Badge from "react-bootstrap/Badge"
1213import Button from "react-bootstrap/Button"
1314import {
@@ -16,6 +17,7 @@ import {
1617 MERGED ,
1718 SUBMITTED
1819} from "./constants"
20+ import { ErrorDisplay } from "./ErrorDisplay"
1921
2022export const isArray = ( arr ) => {
2123 if ( ! Array . isArray ( arr ) || ! arr . length ) {
@@ -321,12 +323,21 @@ export function sortAlphabetically (list, byID) {
321323}
322324
323325// function which displays CR Conflict errors
324- export function getCRConflictError ( errorData ) {
325- let message = "It looks like there are conflicts, fix these conflicts and then update or exit the Change Request"
326- return < div >
327- { message }
326+ export const getCRConflictError = ( errorData ) => {
327+ //const [showError, setShowError] = useState(false)
328+ let message = "It looks like there are conflicts, fix these conflicts and then update or exit the Change Request"
329+
330+ return < ErrorDisplay errorData = { errorData } message = { message } />
331+
332+ /*let message = "It looks like there are conflicts, fix these conflicts and then update or exit the Change Request"
333+ return <div className="w-100">
334+ <Stack direction="horizontal" gap={3} className="w-100">
335+ <div>{message}</div>
336+ <Button className="ms-auto btn btn-sm alert_danger alert_danger_text">More Info</Button>
337+ </Stack>
338+
328339 <pre>{JSON.stringify(errorData, null, 2)}</pre>
329- </ div >
340+ </div>*/
330341}
331342
332343export function decodeUrl ( id ) {
0 commit comments