Skip to content

Commit

Permalink
Fixes #152, using balloon-css instead of react-tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
nonumpa committed Feb 24, 2019
1 parent 777363a commit b33dd48
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions components/EditorName.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import React from 'react';
import ReactToolTip from 'react-tooltip';
import levelNames from '../constants/levelNames';
import '../node_modules/balloon-css/balloon.css';

export default function EditorName({ editorName, editorLevel }) {
return (
<span>
<span data-tip data-for="editor-info">
{editorName}
</span>
<ReactToolTip id="editor-info" wrapper="span">
<span>{`Lv.${editorLevel} ${levelNames[editorLevel]} `}</span>
</ReactToolTip>
<span data-balloon={`Lv.${editorLevel} ${levelNames[editorLevel]} `} data-balloon-pos="up">
{editorName}
</span>
);
}

0 comments on commit b33dd48

Please sign in to comment.