mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
* add prettier and have it format all js code except website: : * trying running prettier check in CI * fix runs on in CI * change CI job name * fix prettier erros and fix CI
25 lines
595 B
JavaScript
25 lines
595 B
JavaScript
import React from "react";
|
|
import PropTypes from "prop-types";
|
|
import classnames from "classnames";
|
|
|
|
import KolideIcon from "components/icons/KolideIcon";
|
|
|
|
const baseClass = "persistent-flash";
|
|
|
|
const PersistentFlash = ({ message }) => {
|
|
const klass = classnames(baseClass, `${baseClass}--error`);
|
|
|
|
return (
|
|
<div className={klass}>
|
|
<div className={`${baseClass}__content`}>
|
|
<KolideIcon name="warning-filled" /> <span>{message}</span>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
PersistentFlash.propTypes = {
|
|
message: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default PersistentFlash;
|