Skip to content

Commit

Permalink
Merge 6711114 into b28b860
Browse files Browse the repository at this point in the history
  • Loading branch information
nonumpa committed Feb 27, 2019
2 parents b28b860 + 6711114 commit 156f3f9
Show file tree
Hide file tree
Showing 3 changed files with 2,623 additions and 2,629 deletions.
14 changes: 6 additions & 8 deletions components/EditorName.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import React from 'react';
import ReactToolTip from 'react-tooltip';
import levelNames from '../constants/levelNames';
import '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>
);
}
Loading

0 comments on commit 156f3f9

Please sign in to comment.