mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
work on next13
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { Box, Stack, Title, UnstyledButton } from '@mantine/core';
|
||||
import { Anchor, Box, Stack, Title, UnstyledButton } from '@mantine/core';
|
||||
import { NextLink } from '@mantine/next';
|
||||
import { createStyles } from '@mantine/styles';
|
||||
import { motion } from 'framer-motion';
|
||||
import Link from 'next/link';
|
||||
import { AppType } from '../../../../types/app';
|
||||
import { useCardStyles } from '../../../layout/useCardStyles';
|
||||
import { useEditModeStore } from '../../Views/useEditModeStore';
|
||||
@@ -71,7 +72,7 @@ export const AppTile = ({ className, app }: AppTileProps) => {
|
||||
) : (
|
||||
<UnstyledButton
|
||||
style={{ pointerEvents: isEditMode ? 'none' : 'auto' }}
|
||||
component={NextLink}
|
||||
component={Link}
|
||||
href={app.behaviour.externalUrl.length > 0 ? app.behaviour.externalUrl : app.url}
|
||||
target={app.behaviour.isOpeningNewTab ? '_blank' : '_self'}
|
||||
className={cx(classes.button)}
|
||||
|
||||
Reference in New Issue
Block a user