Skip to content

Commit

Permalink
fix: hide the legend (flyteorg#435)
Browse files Browse the repository at this point in the history
Signed-off-by: eugenejahn <eugenejahnjahn@gmail.com>
  • Loading branch information
eugenejahn authored and anrusina committed May 18, 2022
1 parent 48a1c92 commit caaf5c2
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ export const LegendItem = ({ color, text }) => {
);
};

export const Legend = () => {
const [isVisible, setIsVisible] = useState(true);
interface LegendProps {
initialIsVisible?: boolean;
}

export const Legend: React.FC<LegendProps> = (props) => {
const { initialIsVisible = false } = props;

const [isVisible, setIsVisible] = useState(initialIsVisible);

const positionStyle: CSSProperties = {
bottom: '1rem',
Expand Down

0 comments on commit caaf5c2

Please sign in to comment.