Grégoire Delattre 2bdfd4dc36
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
Fix the plot wrap when the user's screen is to small
2020-02-29 12:17:54 +01:00

15 lines
320 B
JavaScript

import React from "react";
import PropTypes from "prop-types";
export const Plot = ({ plot }) => {
if (plot === "") {
return null;
}
return (
<span className="text text-break overflow-auto text-justify">{plot}</span>
);
};
Plot.propTypes = { plot: PropTypes.string };
Plot.defaultProps = { plot: "" };