From 3e3c490a223ed08b1cd555ea61c4ee342a2e2a8a Mon Sep 17 00:00:00 2001
From: Ryan Alexander <38785445+ryanalexander@users.noreply.github.com>
Date: Mon, 16 Aug 2021 01:40:58 +1000
Subject: [PATCH 1/2] Add Tooltip to settings icon
---
src/components/navigation/left/ServerListSidebar.tsx | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/components/navigation/left/ServerListSidebar.tsx b/src/components/navigation/left/ServerListSidebar.tsx
index fcd68861..df94718c 100644
--- a/src/components/navigation/left/ServerListSidebar.tsx
+++ b/src/components/navigation/left/ServerListSidebar.tsx
@@ -320,9 +320,13 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => {
{!isTouchscreenDevice && (
-
-
-
+
+
+
+
+
)}
From a6c788f4690fea9a0ddf7d25b8ca40e64503c7b6 Mon Sep 17 00:00:00 2001
From: Ryan Alexander <38785445+ryanalexander@users.noreply.github.com>
Date: Mon, 16 Aug 2021 01:57:33 +1000
Subject: [PATCH 2/2] Used global language file for text
---
src/components/navigation/left/ServerListSidebar.tsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/components/navigation/left/ServerListSidebar.tsx b/src/components/navigation/left/ServerListSidebar.tsx
index df94718c..4483100a 100644
--- a/src/components/navigation/left/ServerListSidebar.tsx
+++ b/src/components/navigation/left/ServerListSidebar.tsx
@@ -5,6 +5,8 @@ import { Link, useHistory, useLocation, useParams } from "react-router-dom";
import { RelationshipStatus } from "revolt-api/types/Users";
import styled, { css } from "styled-components";
+import { Text } from "preact-i18n";
+
import { attachContextMenu } from "preact-context-menu";
import ConditionalLink from "../../../lib/ConditionalLink";
@@ -321,7 +323,7 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => {
}
placement="right">