|
1 |
| -import * as React from "react"; |
| 1 | +import { faBell } from "@fortawesome/free-solid-svg-icons/faBell"; |
| 2 | +import { faCheck } from "@fortawesome/free-solid-svg-icons/faCheck"; |
| 3 | +import { faExclamationCircle } from "@fortawesome/free-solid-svg-icons/faExclamationCircle"; |
| 4 | +import { faExclamationTriangle } from "@fortawesome/free-solid-svg-icons/faExclamationTriangle"; |
| 5 | +import { faSpinner } from "@fortawesome/free-solid-svg-icons/faSpinner"; |
2 | 6 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
| 7 | +import * as React from "react"; |
3 | 8 | import {
|
4 |
| - faSpinner, |
5 |
| - faBell, |
6 |
| - faCheck, |
7 |
| - faExclamationTriangle, |
8 |
| - faExclamationCircle |
9 |
| -} from "@fortawesome/free-solid-svg-icons"; |
10 |
| -import { closeIcon } from "@jupyterlab/ui-components"; |
11 |
| -import { |
| 9 | + ClearWaitingQueueParams, |
| 10 | + ToastContainerProps, |
12 | 11 | ToastContent,
|
13 | 12 | ToastOptions,
|
14 |
| - UpdateOptions, |
| 13 | + ToastTransitionProps, |
15 | 14 | TypeOptions,
|
16 |
| - ToastContainerProps, |
17 |
| - ClearWaitingQueueParams, |
18 |
| - ToastTransitionProps |
| 15 | + UpdateOptions |
19 | 16 | } from "react-toastify";
|
20 | 17 |
|
| 18 | +// import { closeIcon } from "@jupyterlab/ui-components"; // Not available on JLab 1.x #8 |
| 19 | +const closeIcon: JSX.Element = ( |
| 20 | + <svg |
| 21 | + element-position="center" |
| 22 | + height="16px" |
| 23 | + viewBox="0 0 24 24" |
| 24 | + width="16px" |
| 25 | + xmlns="http://www.w3.org/2000/svg" |
| 26 | + > |
| 27 | + <g |
| 28 | + className="jp-icon-none jp-icon-selectable-inverse jp-icon3-hover" |
| 29 | + fill="none" |
| 30 | + > |
| 31 | + <circle cx="12" cy="12" r="11" /> |
| 32 | + </g> |
| 33 | + |
| 34 | + <g |
| 35 | + className="jp-icon3 jp-icon-selectable jp-icon-accent2-hover" |
| 36 | + fill="#616161" |
| 37 | + > |
| 38 | + <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /> |
| 39 | + </g> |
| 40 | + |
| 41 | + <g className="jp-icon-none jp-icon-busy" fill="none"> |
| 42 | + <circle cx="12" cy="12" r="7" /> |
| 43 | + </g> |
| 44 | + </svg> |
| 45 | +); |
| 46 | + |
21 | 47 | export namespace INotification {
|
22 | 48 | export interface IButton {
|
23 | 49 | /**
|
@@ -494,12 +520,7 @@ namespace Private {
|
494 | 520 | closeToast
|
495 | 521 | }) => (
|
496 | 522 | <i onClick={closeToast}>
|
497 |
| - <closeIcon.react |
498 |
| - className="jp-icon-hover" |
499 |
| - elementPosition="center" |
500 |
| - height="16px" |
501 |
| - width="16px" |
502 |
| - /> |
| 523 | + <span className="jp-icon-hover">{closeIcon}</span> |
503 | 524 | </i>
|
504 | 525 | );
|
505 | 526 |
|
|
0 commit comments