Skip to content

Commit

Permalink
fix alert box when editing taxonomy data
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Jul 12, 2022
1 parent 9ecb867 commit 5a920a8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 25 deletions.
32 changes: 16 additions & 16 deletions src/collective/taxonomy/javascripts/build/edittaxonomydata.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/collective/taxonomy/javascripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
},
"author": "Cédric Messiant",
"license": "GPL-3.0",
"husky": {
"hooks": {
"pre-commit": "cd $(git rev-parse --show-toplevel) && make code-format"
}
},
"devDependencies": {
"babel": "^6.5.2",
"babel-core": "^6.9.1",
Expand All @@ -45,7 +40,6 @@
"eslint-plugin-jsx-a11y": "^1.2.0",
"eslint-plugin-react": "^5.1.1",
"express": "^4.13.3",
"husky": "4.2.1",
"isparta": "^4.0.0",
"mocha": "^2.5.3",
"prettier": "1.19.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class App extends Component {

{dirty ? (
<MessageBox
status="error"
status="warning"
message={intl.formatMessage(messages.changesMade)}
/>
) : null}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { PropTypes } from 'react';

const MessageBox = ({ message, status }) => (
<dl className={`portalMessage ${status}`}>
<dl className={`portalMessage ${status} alert alert-${status === 'error' ? 'danger' : status}`}>
<dt>{status}</dt>
<dd>{message}</dd>
</dl>
Expand Down

0 comments on commit 5a920a8

Please sign in to comment.