Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: removed isNarrow state from app.js (#1596)

Muhammad Ali08e5c285e0c1
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index fd3d19c39..ffb264c11 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -110,12 +110,8 @@ function DesktopAppContents({ isAppLoaded, show, setShow }) {
() => Config.get("paneSizes", defaultSizes),
[defaultSizes]
);
- const [isNarrow, setIsNarrow] = useState(isTablet);
const panesRef = useRef();
-
- useEffect(() => {
- setIsNarrow(isTablet);
- }, [isTablet]);
+ const [isNarrow, setIsNarrow] = useState();
return (
<>
diff --git a/apps/web/src/components/reminder-bar/index.js b/apps/web/src/components/reminder-bar/index.js
index 39104d17b..97a9a39fd 100644
--- a/apps/web/src/components/reminder-bar/index.js
+++ b/apps/web/src/components/reminder-bar/index.js
@@ -59,7 +59,7 @@ function ReminderBar() {
<Text variant="body" sx={{ fontSize: "body" }}>
{reminder.title}
</Text>
- <Text variant="subBody" sx={{ display: ["block", "none", "block"] }}>
+ <Text variant="subBody" sx={{ display: "block" }}>
{reminder.subtitle}
</Text>
</Flex>