Skip to content

Commit 166850c

Browse files
authored
fix close button in NI alerts (#1028)
Signed-off-by: aradys-intel <agata.radys@intel.com>
1 parent ef6883d commit 166850c

File tree

4 files changed

+129
-1
lines changed

4 files changed

+129
-1
lines changed

neural_insights/gui/src/components/Warning/Warning.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,23 @@
1414
// limitations under the License.
1515
import React from 'react';
1616
import Alert from 'react-bootstrap/Alert';
17+
import Button from 'react-bootstrap/Button';
1718
import './Warning.scss';
1819

1920
export default function Warning({ warningText, setWarningText }) {
2021

2122
if (warningText.length) {
2223
return (
23-
<Alert variant="danger" onClose={() => setWarningText('')} dismissible>
24+
<Alert variant="danger">
2425
<Alert.Heading>Error</Alert.Heading>
2526
<p>
2627
{warningText}
2728
</p>
29+
<div className="d-flex justify-content-end">
30+
<Button onClick={() => setWarningText('')} variant="outline-danger">
31+
Close me
32+
</Button>
33+
</div>
2834
</Alert>
2935
);
3036
}

neural_insights/web/app/static/js/main.bd15131f.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/*
2+
* @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
3+
* @license MIT
4+
* @preserve Project Home: https://github.com/voidqk/polybooljs
5+
*/
6+
7+
/*
8+
object-assign
9+
(c) Sindre Sorhus
10+
@license MIT
11+
*/
12+
13+
/*!
14+
Copyright (c) 2018 Jed Watson.
15+
Licensed under the MIT License (MIT), see
16+
http://jedwatson.github.io/classnames
17+
*/
18+
19+
/*!
20+
* The buffer module from node.js, for the browser.
21+
*
22+
* @author Feross Aboukhadijeh <https://feross.org>
23+
* @license MIT
24+
*/
25+
26+
/*!
27+
* Determine if an object is a Buffer
28+
*
29+
* @author Feross Aboukhadijeh <https://feross.org>
30+
* @license MIT
31+
*/
32+
33+
/*!
34+
* pad-left <https://github.com/jonschlinkert/pad-left>
35+
*
36+
* Copyright (c) 2014-2015, Jon Schlinkert.
37+
* Licensed under the MIT license.
38+
*/
39+
40+
/*!
41+
* repeat-string <https://github.com/jonschlinkert/repeat-string>
42+
*
43+
* Copyright (c) 2014-2015, Jon Schlinkert.
44+
* Licensed under the MIT License.
45+
*/
46+
47+
/*!
48+
* The buffer module from node.js, for the browser.
49+
*
50+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
51+
* @license MIT
52+
*/
53+
54+
/*!
55+
* The buffer module from node.js, for the browser.
56+
*
57+
* @author Feross Aboukhadijeh <https://feross.org>
58+
* @license MIT
59+
*/
60+
61+
/*!
62+
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
63+
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
64+
Licensed under The MIT License (http://opensource.org/licenses/MIT)
65+
*/
66+
67+
/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */
68+
69+
/*! Native Promise Only
70+
v0.8.1 (c) Kyle Simpson
71+
MIT License: http://getify.mit-license.org
72+
*/
73+
74+
/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */
75+
76+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
77+
78+
/**
79+
* @license React
80+
* react-dom.production.min.js
81+
*
82+
* Copyright (c) Facebook, Inc. and its affiliates.
83+
*
84+
* This source code is licensed under the MIT license found in the
85+
* LICENSE file in the root directory of this source tree.
86+
*/
87+
88+
/**
89+
* @license React
90+
* react-jsx-runtime.production.min.js
91+
*
92+
* Copyright (c) Facebook, Inc. and its affiliates.
93+
*
94+
* This source code is licensed under the MIT license found in the
95+
* LICENSE file in the root directory of this source tree.
96+
*/
97+
98+
/**
99+
* @license React
100+
* react.production.min.js
101+
*
102+
* Copyright (c) Facebook, Inc. and its affiliates.
103+
*
104+
* This source code is licensed under the MIT license found in the
105+
* LICENSE file in the root directory of this source tree.
106+
*/
107+
108+
/**
109+
* @license React
110+
* scheduler.production.min.js
111+
*
112+
* Copyright (c) Facebook, Inc. and its affiliates.
113+
*
114+
* This source code is licensed under the MIT license found in the
115+
* LICENSE file in the root directory of this source tree.
116+
*/
117+
118+
//! moment.js

neural_insights/web/app/static/js/main.bd15131f.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)