@@ -4,11 +4,8 @@ import React from "react"
44import Releases from "./Releases"
55import tabSize from "lib/x/tabSize"
66import Transition from "lib/x/Transition"
7-
8- import {
9- AbsoluteBottomLeftToolTip as TooltipL ,
10- AbsoluteBottomRightToolTip as TooltipR ,
11- } from "../Tooltips"
7+ import { AbsoluteBottomLeftToolTip as LeftTooltip } from "../Tooltips"
8+ import { AbsoluteBottomRightToolTip as RightTooltip } from "../Tooltips"
129
1310const MemoFixedTopPreferences = React . memo ( ( { prefs } ) => {
1411 const dispatch = React . useContext ( PrefsDispatchContext )
@@ -38,11 +35,11 @@ const MemoFixedTopPreferences = React.memo(({ prefs }) => {
3835 } }
3936 >
4037 { ( ! prefs . show && tooltip === "lock" ) && (
41- < TooltipL >
38+ < LeftTooltip >
4239 < p className = "text-xs whitespace-pre text-gray-100" >
4340 { ! prefs . readOnlyMode ? "Enable Read-Only Mode" : "Disable Read-Only Mode" }
4441 </ p >
45- </ TooltipL >
42+ </ LeftTooltip >
4643 ) }
4744 < svg className = "w-5 h-5" fill = "currentColor" viewBox = "0 0 20 20" >
4845 { ! prefs . readOnlyMode
@@ -71,14 +68,13 @@ const MemoFixedTopPreferences = React.memo(({ prefs }) => {
7168 } }
7269 >
7370 { ( ! prefs . show && tooltip === "releases" ) && (
74- < TooltipR >
71+ < RightTooltip >
7572 < p className = "text-xs whitespace-pre text-gray-100" >
7673 View Releases
7774 </ p >
78- </ TooltipR >
75+ </ RightTooltip >
7976 ) }
8077 < svg className = "w-5 h-5" fill = "currentColor" viewBox = "0 0 20 20" >
81- { /* <path d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z" /> */ }
8278 < path d = "M18 3a1 1 0 00-1.447-.894L8.763 6H5a3 3 0 000 6h.28l1.771 5.316A1 1 0 008 18h1a1 1 0 001-1v-4.382l6.553 3.276A1 1 0 0018 15V3z" clipRule = "evenodd" fillRule = "evenodd" />
8379 </ svg >
8480 </ button >
@@ -97,11 +93,11 @@ const MemoFixedTopPreferences = React.memo(({ prefs }) => {
9793 } }
9894 >
9995 { ( ! prefs . show && tooltip === "markdown" ) && (
100- < TooltipR >
96+ < RightTooltip >
10197 < p className = "text-xs whitespace-pre text-gray-100" >
102- Show GitHub Flavored Markdown
98+ Render to GitHub Flavored Markdown
10399 </ p >
104- </ TooltipR >
100+ </ RightTooltip >
105101 ) }
106102 < svg className = "w-5 h-5" fill = "currentColor" viewBox = "0 0 20 20" >
107103 < path d = "M2 5a2 2 0 012-2h12a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm3.293 1.293a1 1 0 011.414 0l3 3a1 1 0 010 1.414l-3 3a1 1 0 01-1.414-1.414L7.586 10 5.293 7.707a1 1 0 010-1.414zM11 12a1 1 0 100 2h3a1 1 0 100-2h-3z" clipRule = "evenodd" fillRule = "evenodd" />
@@ -122,11 +118,11 @@ const MemoFixedTopPreferences = React.memo(({ prefs }) => {
122118 } }
123119 >
124120 { ( ! prefs . show && tooltip === "markup" ) && (
125- < TooltipR >
121+ < RightTooltip >
126122 < p className = "text-xs whitespace-pre text-gray-100" >
127- Show HyperText Markup Language
123+ Render to HTML
128124 </ p >
129- </ TooltipR >
125+ </ RightTooltip >
130126 ) }
131127 < svg className = "w-5 h-5" fill = "currentColor" viewBox = "0 0 20 20" >
132128 < path d = "M12.316 3.051a1 1 0 01.633 1.265l-4 12a1 1 0 11-1.898-.632l4-12a1 1 0 011.265-.633zM5.707 6.293a1 1 0 010 1.414L3.414 10l2.293 2.293a1 1 0 11-1.414 1.414l-3-3a1 1 0 010-1.414l3-3a1 1 0 011.414 0zm8.586 0a1 1 0 011.414 0l3 3a1 1 0 010 1.414l-3 3a1 1 0 11-1.414-1.414L16.586 10l-2.293-2.293a1 1 0 010-1.414z" clipRule = "evenodd" fillRule = "evenodd" />
0 commit comments