Commit 2f752eb5 authored by ioedeveloper's avatar ioedeveloper

Fixed linting errors

parent f74b3d22
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"browser": true, "browser": true,
"es6": true "es6": true
}, },
"extends": "../../.eslintrc", "extends": "../../../.eslintrc",
"globals": { "globals": {
"Atomics": "readonly", "Atomics": "readonly",
"SharedArrayBuffer": "readonly" "SharedArrayBuffer": "readonly"
......
export * from './lib/toaster'; export * from './lib/toaster'
import React, { useEffect, useState } from 'react' import React, { useEffect, useState } from 'react' // eslint-disable-line
import './toaster.css'; import './toaster.css'
/* eslint-disable-next-line */ /* eslint-disable-next-line */
export interface ToasterProps { export interface ToasterProps {
...@@ -66,18 +66,17 @@ export const Toaster = (props: ToasterProps) => { ...@@ -66,18 +66,17 @@ export const Toaster = (props: ToasterProps) => {
<div data-shared="tooltipPopup" className={className} onMouseEnter={() => { }} onMouseLeave={() => { }}> <div data-shared="tooltipPopup" className={className} onMouseEnter={() => { }} onMouseLeave={() => { }}>
<span className="px-2"> <span className="px-2">
{shortTooltipText} {shortTooltipText}
{ state.message.length > 201 ? <button className="btn btn-secondary btn-sm mx-3" style={{whiteSpace: 'nowrap'}} onClick={() => showFullMessage()}>Show full message</button> : ''} { state.message.length > 201 ? <button className="btn btn-secondary btn-sm mx-3" style={{ whiteSpace: 'nowrap' }} onClick={() => showFullMessage()}>Show full message</button> : ''}
</span> </span>
<span style={{alignSelf: 'baseline'}}> <span style={{ alignSelf: 'baseline' }}>
<button data-id="tooltipCloseButton" className="fas fa-times btn-info mx-1 p-0" onClick={() => closeTheToaster()}></button> <button data-id="tooltipCloseButton" className="fas fa-times btn-info mx-1 p-0" onClick={() => closeTheToaster()}></button>
</span> </span>
</div> </div>
) )
// animation(this.tooltip, css.animateBottom.className) // animation(this.tooltip, css.animateBottom.className)
}; }
export default Toaster; export default Toaster
const defaultOptions = (opts) : ToasterOptions => { const defaultOptions = (opts) : ToasterOptions => {
opts = opts || {} opts = opts || {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment