diff --git a/apps/landing/src/pages/index.page.tsx b/apps/landing/src/pages/index.page.tsx
index 9ddccda5f..79c232297 100644
--- a/apps/landing/src/pages/index.page.tsx
+++ b/apps/landing/src/pages/index.page.tsx
@@ -108,7 +108,7 @@ function Page() {
{unsubscribedFromWaitlist && (
diff --git a/apps/mobile/src/components/drawer/DrawerLocations.tsx b/apps/mobile/src/components/drawer/DrawerLocations.tsx
index 2ef76be40..6d25154f6 100644
--- a/apps/mobile/src/components/drawer/DrawerLocations.tsx
+++ b/apps/mobile/src/components/drawer/DrawerLocations.tsx
@@ -63,7 +63,7 @@ const DrawerLocations = ({ stackName }: DrawerLocationsProp) => {
{/* Add Location */}
importModalRef.current.present()}>
-
+
Add Location
diff --git a/packages/client/src/hooks/useCurrentLibrary.tsx b/packages/client/src/hooks/useCurrentLibrary.tsx
index 907993bb0..065afa57d 100644
--- a/packages/client/src/hooks/useCurrentLibrary.tsx
+++ b/packages/client/src/hooks/useCurrentLibrary.tsx
@@ -1,5 +1,4 @@
import { PropsWithChildren, createContext, useCallback, useContext, useMemo } from 'react';
-import { useNavigate } from 'react-router';
import { subscribe, useSnapshot } from 'valtio';
import { useBridgeQuery } from '../rspc';
import { valtioPersist } from '../stores';
@@ -35,8 +34,6 @@ export function onLibraryChange(func: (newLibraryId: string | null) => void) {
// this is a hook to get the current library loaded into the UI. It takes care of a bunch of invariants under the hood.
export const useCurrentLibrary = () => {
- const navigate = useNavigate();
-
const currentLibraryUuid = useSnapshot(currentLibraryUuidStore).id;
const ctx = useContext(CringeContext);
if (ctx === undefined)
@@ -69,13 +66,9 @@ export const useCurrentLibrary = () => {
}
});
- const switchLibrary = useCallback(
- (libraryUuid: string) => {
- currentLibraryUuidStore.id = libraryUuid;
- navigate('/');
- },
- [navigate]
- );
+ const switchLibrary = useCallback((libraryUuid: string) => {
+ currentLibraryUuidStore.id = libraryUuid;
+ }, []);
// memorize library to avoid re-running find function
const library = useMemo(() => {
diff --git a/packages/interface/src/components/jobs/JobManager.tsx b/packages/interface/src/components/jobs/JobManager.tsx
index 80fb0f5e9..fe1fd415b 100644
--- a/packages/interface/src/components/jobs/JobManager.tsx
+++ b/packages/interface/src/components/jobs/JobManager.tsx
@@ -149,7 +149,9 @@ function Job({ job }: { job: JobReport }) {
};
const isRunning = job.status === 'Running';
return (
-
+ // Do we actually need bg-opacity-60 here? Where is the bg?
+ // eslint-disable-next-line tailwindcss/migration-from-tailwind-2
+
diff --git a/packages/interface/src/components/layout/Modal.tsx b/packages/interface/src/components/layout/Modal.tsx
index 8f7bd2e85..3ae946ea1 100644
--- a/packages/interface/src/components/layout/Modal.tsx
+++ b/packages/interface/src/components/layout/Modal.tsx
@@ -27,7 +27,7 @@ export function Model(
>
diff --git a/packages/interface/src/components/layout/Sidebar.tsx b/packages/interface/src/components/layout/Sidebar.tsx
index c2c164bea..84d6b86e3 100644
--- a/packages/interface/src/components/layout/Sidebar.tsx
+++ b/packages/interface/src/components/layout/Sidebar.tsx
@@ -11,7 +11,7 @@ import {
UsersThree
} from 'phosphor-react';
import React, { PropsWithChildren, useEffect } from 'react';
-import { NavLink, NavLinkProps } from 'react-router-dom';
+import { NavLink, NavLinkProps, useNavigate } from 'react-router-dom';
import {
Location,
LocationCreateArgs,
@@ -59,6 +59,7 @@ export function Sidebar() {
const os = useOperatingSystem();
const { library, libraries, isLoading: isLoadingLibraries, switchLibrary } = useCurrentLibrary();
const debugState = useDebugState();
+ const navigate = useNavigate();
useEffect(() => {
// Prevent the dropdown button to be auto focused on launch
@@ -100,7 +101,10 @@ export function Sidebar() {
switchLibrary(lib.uuid)}
+ onClick={() => {
+ switchLibrary(lib.uuid);
+ navigate('/');
+ }}
>
{lib.config.name}
@@ -283,7 +287,7 @@ const sidebarItemClass = cva(
false: 'text-ink-dull'
},
isTransparent: {
- true: 'bg-opacity/90',
+ true: 'bg-opacity-90',
false: ''
}
}
diff --git a/packages/interface/src/components/primitive/Listbox.tsx b/packages/interface/src/components/primitive/Listbox.tsx
index 4cdcc6355..1080db11f 100644
--- a/packages/interface/src/components/primitive/Listbox.tsx
+++ b/packages/interface/src/components/primitive/Listbox.tsx
@@ -24,9 +24,9 @@ export default function Listbox(props: { options: ListboxOption[]; className?: s
{props.options.map((option, index) => (
@@ -54,9 +54,7 @@ export default function Listbox(props: { options: ListboxOption[]; className?: s
key={option.key}
className={({ active }) =>
`relative m-1 cursor-default select-none rounded py-2 pl-8 pr-4 focus:outline-none dark:text-white ${
- active
- ? 'text-accent bg-accent'
- : 'dark:hover:bg-opacity/20 text-gray-900 dark:hover:bg-gray-600'
+ active ? 'text-accent bg-accent' : 'text-gray-900 dark:hover:bg-gray-600/20'
}`
}
value={option}
diff --git a/packages/interface/src/components/primitive/Slider.tsx b/packages/interface/src/components/primitive/Slider.tsx
index 14c935db5..667fb997d 100644
--- a/packages/interface/src/components/primitive/Slider.tsx
+++ b/packages/interface/src/components/primitive/Slider.tsx
@@ -10,7 +10,7 @@ const Slider = (props: SliderPrimitive.SliderProps) => (
diff --git a/packages/interface/src/components/primitive/Toasts.tsx b/packages/interface/src/components/primitive/Toasts.tsx
index a7a0cf7b6..1ae59b489 100644
--- a/packages/interface/src/components/primitive/Toasts.tsx
+++ b/packages/interface/src/components/primitive/Toasts.tsx
@@ -22,7 +22,7 @@ export function Toasts() {
'radix-swipe-end:animate-toast-swipe-out',
'translate-x-radix-toast-swipe-move-x',
'radix-swipe-cancel:translate-x-0 radix-swipe-cancel:duration-200 radix-swipe-cancel:ease-[ease]',
- 'focus-visible:ring-accent focus-visible:ring-opacity/75 border-2 border-white/10 shadow-2xl focus:outline-none focus-visible:ring'
+ 'focus-visible:ring-accent/75 border-2 border-white/10 shadow-2xl focus:outline-none focus-visible:ring'
)}
>
@@ -44,7 +44,7 @@ export function Toasts() {
{toast.actionButton && (
{
e.preventDefault();
toast.actionButton?.onClick();
@@ -56,7 +56,7 @@ export function Toasts() {
)}
-
+
Dismiss
diff --git a/packages/interface/src/screens/settings/info/Dependencies.tsx b/packages/interface/src/screens/settings/info/Dependencies.tsx
index 354b0b7d0..6139f4670 100644
--- a/packages/interface/src/screens/settings/info/Dependencies.tsx
+++ b/packages/interface/src/screens/settings/info/Dependencies.tsx
@@ -8,7 +8,7 @@ export default function DependenciesScreen() {
const platform = usePlatform();
return (
-