Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
public
Mímir
Commits
f6da884d
Commit
f6da884d
authored
Aug 14, 2020
by
Roberto Minelli
Browse files
Improved NoResultsModal.js
parent
ea9fc5a7
Pipeline
#885
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/src/components/queryResult/NoResultsModal.js
View file @
f6da884d
import
React
from
'
react
'
;
import
Modal
from
'
react-bootstrap/Modal
'
;
import
Button
from
'
react-bootstrap/Button
'
;
import
noresult
from
'
../../result_not_found.png
'
;
import
{
useDispatch
,
useSelector
}
from
'
react-redux
'
;
import
{
closeNoResultModal
,
selectNoResultModalOpen
,
selectQuery
}
from
'
../navbar/querySlice
'
;
import
Card
from
'
react-bootstrap/Card
'
;
...
...
@@ -16,18 +17,34 @@ export default function NoResultsModal(props) {
<
Modal
show
=
{
noResultModalOpen
}
onHide
=
{
handleClose
}
backdrop
=
"
static
"
backdrop
=
'
static
'
keyboard
=
{
false
}
size
=
"
sm
"
size
=
'
md
'
>
<
Modal
.
Header
closeButton
>
<
Modal
.
Title
>
No
results
!<
/Modal.Title
>
<
Modal
.
Title
>
No
results
found
!<
/Modal.Title
>
<
/Modal.Header
>
<
Modal
.
Body
>
<
Card
.
Text
>
Your
query
produced
no
results
.
<
/Card.Text
>
<
Card
.
Text
>
Your
query
did
not
match
any
documents
.
There
may
be
a
number
of
reasons
why
your
search
did
not
return
any
results
:
<
/Card.Text
>
<
Card
.
Text
>
<
ul
>
<
li
>
Spelling
error
or
unknown
search
terms
:
please
check
the
spelling
or
search
for
other
terms
<
/li
>
<
li
>
The
documents
you
are
looking
for
have
not
yet
been
catalogued
and
recorded
in
the
system
<
/li
>
<
/ul
>
<
/Card.Text
>
<
Card
.
Img
variant
=
'
top
'
src
=
{
noresult
}
/
>
<
/Modal.Body
>
<
Modal
.
Footer
>
<
Button
variant
=
"
secondary
"
onClick
=
{
handleClose
}
>
<
Button
variant
=
'
secondary
'
onClick
=
{
handleClose
}
>
Close
<
/Button
>
<
/Modal.Footer
>
...
...
client/src/result_not_found.png
0 → 100644
View file @
f6da884d
29.5 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment