diff --git a/packages/react-core/src/components/Navbar/types.ts b/apps/web/src/components/Layout/types.ts
similarity index 50%
rename from packages/react-core/src/components/Navbar/types.ts
rename to apps/web/src/components/Layout/types.ts
index 62b0cc9fc..d29a8a601 100644
--- a/packages/react-core/src/components/Navbar/types.ts
+++ b/apps/web/src/components/Layout/types.ts
@@ -1,13 +1,7 @@
-import type { Promisable } from 'type-fest';
-
export type NavItem = {
[key: `data-${string}`]: unknown;
+ disabled?: boolean;
icon?: React.ComponentType
, 'ref'>>;
id: string;
label: string;
};
-
-export type NavI18Next = {
- changeLanguage: (lang: string) => Promisable;
- resolvedLanguage?: string;
-};
diff --git a/apps/web/src/features/instruments/components/InstrumentShowcase/InstrumentShowcase.tsx b/apps/web/src/features/instruments/components/InstrumentShowcase/InstrumentShowcase.tsx
index 8e530281b..15e8d5147 100644
--- a/apps/web/src/features/instruments/components/InstrumentShowcase/InstrumentShowcase.tsx
+++ b/apps/web/src/features/instruments/components/InstrumentShowcase/InstrumentShowcase.tsx
@@ -1,6 +1,6 @@
import { useEffect, useState } from 'react';
-import { SearchBar, SelectDropdown, useNotificationsStore } from '@douglasneuroinformatics/ui';
+import { SearchBar, SelectDropdown } from '@douglasneuroinformatics/ui';
import type { SelectOption } from '@douglasneuroinformatics/ui';
import type { UnilingualInstrumentSummary } from '@open-data-capture/common/instrument';
import { motion } from 'framer-motion';
@@ -8,7 +8,6 @@ import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
import { useInstrumentSummariesQuery } from '@/hooks/useInstrumentSummariesQuery';
-import { useActiveVisitStore } from '@/stores/active-visit-store';
import { InstrumentCard } from '../InstrumentCard';
@@ -22,9 +21,6 @@ export const InstrumentsShowcase = () => {
const [selectedTags, setSelectedTags] = useState([]);
const [searchTerm, setSearchTerm] = useState('');
- const { activeVisit } = useActiveVisitStore();
- const notifications = useNotificationsStore();
-
const languageOptions = [
{
key: 'en',
@@ -100,14 +96,7 @@ export const InstrumentsShowcase = () => {
{
- if (activeVisit) {
- navigate(`/instruments/render/${instrument.id}`, { state: { summary: instrument } });
- } else {
- notifications.addNotification({
- message: t('instruments:available.nullActiveVisitError'),
- type: 'info'
- });
- }
+ navigate(`/instruments/render/${instrument.id}`, { state: { summary: instrument } });
}}
/>
diff --git a/apps/web/src/features/instruments/index.tsx b/apps/web/src/features/instruments/index.tsx
index 8b5423f69..46da0cabb 100644
--- a/apps/web/src/features/instruments/index.tsx
+++ b/apps/web/src/features/instruments/index.tsx
@@ -4,15 +4,10 @@ import type { RouteObject } from 'react-router-dom';
import { AvailableInstrumentsPage } from './pages/AvailableInstrumentsPage';
import { InstrumentRenderPage } from './pages/InstrumentRenderPage';
-import { ManageInstrumentsPage } from './pages/ManageInstrumentsPage';
export const instrumentsRoute: RouteObject = {
path: 'instruments',
children: [
- {
- path: 'manage-instruments',
- element:
- },
{
path: 'available-instruments',
element:
diff --git a/apps/web/src/features/instruments/pages/ManageInstrumentsPage.tsx b/apps/web/src/features/instruments/pages/ManageInstrumentsPage.tsx
deleted file mode 100644
index a2e003f18..000000000
--- a/apps/web/src/features/instruments/pages/ManageInstrumentsPage.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-export const ManageInstrumentsPage = () => {
- return null;
-};
diff --git a/apps/web/src/features/overview/components/Disclaimer.tsx b/apps/web/src/features/overview/components/Disclaimer.tsx
index f47ca8549..35c0cc78b 100644
--- a/apps/web/src/features/overview/components/Disclaimer.tsx
+++ b/apps/web/src/features/overview/components/Disclaimer.tsx
@@ -22,7 +22,7 @@ export const Disclaimer = ({ isRequired = import.meta.env.PROD }: DisclaimerProp
return (
- {t('disclaimer.message')}
+ {t('disclaimer.message')}