{appDataPath}
volume mount was not configured properly. All data will be cleared when the container is stopped or restarted.',
});
-const AppDataWarning: React.FC = () => {
+const AppDataWarning = () => {
const intl = useIntl();
const { data, error } = useSWR<{ appData: boolean; appDataPath: string }>(
'/api/v1/status/appdata'
@@ -27,9 +26,9 @@ const AppDataWarning: React.FC = () => {
{!data.appData && (
{msg}
+ ),
appDataPath: data.appDataPath,
})}
/>
diff --git a/src/components/CollectionDetails/index.tsx b/src/components/CollectionDetails/index.tsx
index 839f019ad..52bd8a269 100644
--- a/src/components/CollectionDetails/index.tsx
+++ b/src/components/CollectionDetails/index.tsx
@@ -1,24 +1,24 @@
+import ButtonWithDropdown from '@app/components/Common/ButtonWithDropdown';
+import CachedImage from '@app/components/Common/CachedImage';
+import LoadingSpinner from '@app/components/Common/LoadingSpinner';
+import PageTitle from '@app/components/Common/PageTitle';
+import RequestModal from '@app/components/RequestModal';
+import Slider from '@app/components/Slider';
+import StatusBadge from '@app/components/StatusBadge';
+import TitleCard from '@app/components/TitleCard';
+import useSettings from '@app/hooks/useSettings';
+import { Permission, useUser } from '@app/hooks/useUser';
+import globalMessages from '@app/i18n/globalMessages';
+import Error from '@app/pages/_error';
import { DownloadIcon } from '@heroicons/react/outline';
+import { MediaStatus } from '@server/constants/media';
+import type { Collection } from '@server/models/Collection';
import { uniq } from 'lodash';
import Link from 'next/link';
import { useRouter } from 'next/router';
-import React, { useState } from 'react';
+import { useState } from 'react';
import { defineMessages, useIntl } from 'react-intl';
import useSWR from 'swr';
-import { MediaStatus } from '../../../server/constants/media';
-import type { Collection } from '../../../server/models/Collection';
-import useSettings from '../../hooks/useSettings';
-import { Permission, useUser } from '../../hooks/useUser';
-import globalMessages from '../../i18n/globalMessages';
-import Error from '../../pages/_error';
-import ButtonWithDropdown from '../Common/ButtonWithDropdown';
-import CachedImage from '../Common/CachedImage';
-import LoadingSpinner from '../Common/LoadingSpinner';
-import PageTitle from '../Common/PageTitle';
-import RequestModal from '../RequestModal';
-import Slider from '../Slider';
-import StatusBadge from '../StatusBadge';
-import TitleCard from '../TitleCard';
const messages = defineMessages({
overview: 'Overview',
@@ -31,9 +31,7 @@ interface CollectionDetailsProps {
collection?: Collection;
}
-const CollectionDetails: React.FC( switch (buttonType) { case 'primary': buttonStyle.push( - 'text-white bg-indigo-600 border-indigo-600 hover:bg-indigo-500 hover:border-indigo-500 focus:border-indigo-700 focus:ring-indigo active:bg-indigo-700 active:border-indigo-700' + 'text-white border border-indigo-500 bg-indigo-600 bg-opacity-80 hover:bg-opacity-100 hover:border-indigo-500 focus:border-indigo-700 focus:ring-indigo active:bg-opacity-100 active:border-indigo-700' ); break; case 'danger': buttonStyle.push( - 'text-white bg-red-600 border-red-600 hover:bg-red-500 hover:border-red-500 focus:border-red-700 focus:ring-red active:bg-red-700 active:border-red-700' + 'text-white bg-red-600 bg-opacity-80 border-red-500 hover:bg-opacity-100 hover:border-red-500 focus:border-red-700 focus:ring-red active:bg-red-700 active:border-red-700' ); break; case 'warning': buttonStyle.push( - 'text-white bg-yellow-500 border-yellow-500 hover:bg-yellow-400 hover:border-yellow-400 focus:border-yellow-700 focus:ring-yellow active:bg-yellow-700 active:border-yellow-700' + 'text-white border border-yellow-500 bg-yellow-500 bg-opacity-80 hover:bg-opacity-100 hover:border-yellow-400 focus:border-yellow-700 focus:ring-yellow active:bg-opacity-100 active:border-yellow-700' ); break; case 'success': buttonStyle.push( - 'text-white bg-green-500 border-green-500 hover:bg-green-400 hover:border-green-400 focus:border-green-700 focus:ring-green active:bg-green-700 active:border-green-700' + 'text-white bg-green-500 bg-opacity-80 border-green-500 hover:bg-opacity-100 hover:border-green-400 focus:border-green-700 focus:ring-green active:bg-opacity-100 active:border-green-700' ); break; case 'ghost': @@ -75,7 +76,7 @@ function Button
(
break;
default:
buttonStyle.push(
- 'text-gray-200 bg-gray-600 border-gray-600 hover:text-white hover:bg-gray-500 hover:border-gray-500 group-hover:text-white group-hover:bg-gray-500 group-hover:border-gray-500 focus:border-blue-300 focus:ring-blue active:text-gray-200 active:bg-gray-500 active:border-gray-500'
+ 'text-gray-200 bg-gray-800 bg-opacity-80 border-gray-600 hover:text-white hover:bg-gray-700 hover:border-gray-600 group-hover:text-white group-hover:bg-gray-700 group-hover:border-gray-600 focus:border-blue-300 focus:ring-blue active:text-gray-200 active:bg-gray-700 active:border-gray-600'
);
}
diff --git a/src/components/Common/ButtonWithDropdown/index.tsx b/src/components/Common/ButtonWithDropdown/index.tsx
index 6edb4a11f..be6815b94 100644
--- a/src/components/Common/ButtonWithDropdown/index.tsx
+++ b/src/components/Common/ButtonWithDropdown/index.tsx
@@ -1,34 +1,29 @@
+import useClickOutside from '@app/hooks/useClickOutside';
+import { withProperties } from '@app/utils/typeHelpers';
+import { Transition } from '@headlessui/react';
import { ChevronDownIcon } from '@heroicons/react/solid';
-import React, {
- AnchorHTMLAttributes,
- ButtonHTMLAttributes,
- ReactNode,
- useRef,
- useState,
-} from 'react';
-import useClickOutside from '../../../hooks/useClickOutside';
-import { withProperties } from '../../../utils/typeHelpers';
-import Transition from '../../Transition';
+import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
+import { Fragment, useRef, useState } from 'react';
interface DropdownItemProps extends AnchorHTMLAttributes
-
- {children}
-
+
+ {children}
{subtext &&
+ {plexItems?.map((title, index) => {
+ return (
+