mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-18 11:11:10 +01:00
⏪ Revert anchor colors in media request widget
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
|||||||
ScrollArea,
|
ScrollArea,
|
||||||
Stack,
|
Stack,
|
||||||
Text,
|
Text,
|
||||||
Tooltip,
|
Tooltip, useMantineTheme,
|
||||||
} from '@mantine/core';
|
} from '@mantine/core';
|
||||||
import { notifications } from '@mantine/notifications';
|
import { notifications } from '@mantine/notifications';
|
||||||
import { IconCheck, IconGitPullRequest, IconThumbDown, IconThumbUp } from '@tabler/icons-react';
|
import { IconCheck, IconGitPullRequest, IconThumbDown, IconThumbUp } from '@tabler/icons-react';
|
||||||
@@ -103,6 +103,8 @@ function MediaRequestListTile({ widget }: MediaRequestListWidgetProps) {
|
|||||||
// Use mutation to approve or deny a pending request
|
// Use mutation to approve or deny a pending request
|
||||||
const decideAsync = useMediaRequestDecisionMutation();
|
const decideAsync = useMediaRequestDecisionMutation();
|
||||||
|
|
||||||
|
const mantineTheme = useMantineTheme();
|
||||||
|
|
||||||
if (!data || isLoading) {
|
if (!data || isLoading) {
|
||||||
return <WidgetLoading />;
|
return <WidgetLoading />;
|
||||||
}
|
}
|
||||||
@@ -155,7 +157,7 @@ function MediaRequestListTile({ widget }: MediaRequestListWidgetProps) {
|
|||||||
{item.airDate && <Text>{item.airDate.split('-')[0]}</Text>}
|
{item.airDate && <Text>{item.airDate.split('-')[0]}</Text>}
|
||||||
<MediaRequestStatusBadge status={item.status} />
|
<MediaRequestStatusBadge status={item.status} />
|
||||||
</Group>
|
</Group>
|
||||||
<Anchor href={item.href}>
|
<Anchor href={item.href} c={mantineTheme.colorScheme === 'dark' ? 'gray.3' : 'gray.8'}>
|
||||||
{item.name}
|
{item.name}
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Stack>
|
</Stack>
|
||||||
@@ -170,14 +172,13 @@ function MediaRequestListTile({ widget }: MediaRequestListWidgetProps) {
|
|||||||
radius="xl"
|
radius="xl"
|
||||||
withPlaceholder
|
withPlaceholder
|
||||||
/>
|
/>
|
||||||
<Text
|
<Anchor
|
||||||
component="a"
|
|
||||||
href={item.userLink}
|
href={item.userLink}
|
||||||
target={widget.properties.openInNewTab ? "_blank" : "_self"}
|
target={widget.properties.openInNewTab ? "_blank" : "_self"}
|
||||||
sx={{ cursor: 'pointer', '&:hover': { textDecoration: 'underline' } }}
|
c={mantineTheme.colorScheme === 'dark' ? 'gray.3' : 'gray.8'}
|
||||||
>
|
>
|
||||||
{item.userName}
|
{item.userName}
|
||||||
</Text>
|
</Anchor>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{item.status === MediaRequestStatus.PendingApproval && (
|
{item.status === MediaRequestStatus.PendingApproval && (
|
||||||
|
|||||||
Reference in New Issue
Block a user