Fix warnings

This commit is contained in:
Florian Brandel
2020-09-03 17:39:59 +02:00
committed by Bastian
parent 17baffe322
commit e93fc30016
4 changed files with 19 additions and 4 deletions

View File

@@ -165,7 +165,7 @@ export default function PageItem({pageName, items, leaving, onLeave}: PageItemPr
animationRunner.run(); animationRunner.run();
setStateLeaving(false) setStateLeaving(false)
} }
}, [stateLeaving, leaving]) }, [stateLeaving, leaving, animationsIn, animationsOut, onLeave])
const getAnimationStates = (name: string) => { const getAnimationStates = (name: string) => {
if (!animations) { if (!animations) {

View File

@@ -48,9 +48,9 @@ function Search({ value, onChange, onClose, open = false, onSubmit = () => {} }:
</button> </button>
</span> </span>
{closable && ( {closable && (
<a className={classNames('search__close', { 'is-open': open })} onClick={handleClose}> <button className={classNames('search__close link-button', { 'is-open': open })} onClick={handleClose}>
<span className='icon icon--close' /> <span className='icon icon--close' />
</a> </button>
)} )}
</form> </form>
); );

View File

@@ -1,4 +1,4 @@
import { Item, Radar } from './model'; import { Item } from './model';
export const radarName = 'AOE Technology Radar'; export const radarName = 'AOE Technology Radar';
export const radarNameShort = 'Technology Radar'; export const radarNameShort = 'Technology Radar';

View File

@@ -15,3 +15,18 @@
margin-top: -11px; margin-top: -11px;
} }
} }
.link-button {
background-color: transparent;
border: none;
cursor: pointer;
text-decoration: underline;
display: inline;
margin: 0;
padding: 0;
}
.link-button:hover,
.link-button:focus {
text-decoration: none;
}