mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-16 08:24:16 +02:00
Migrate to Mantine v8 and Design Changes (#961)
* mantine v8 migration * various design changes and improvements
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import {
|
||||
HoverCard as MantineHoverCard,
|
||||
HoverCardProps as MantineHoverCardProps,
|
||||
} from '@mantine/core';
|
||||
|
||||
import styles from './hover-card.module.css';
|
||||
|
||||
interface HoverCardProps extends MantineHoverCardProps {}
|
||||
|
||||
export const HoverCard = ({ children, classNames, ...props }: HoverCardProps) => {
|
||||
return (
|
||||
<MantineHoverCard
|
||||
classNames={{
|
||||
dropdown: styles.dropdown,
|
||||
...classNames,
|
||||
}}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</MantineHoverCard>
|
||||
);
|
||||
};
|
||||
|
||||
HoverCard.Target = MantineHoverCard.Target;
|
||||
HoverCard.Dropdown = MantineHoverCard.Dropdown;
|
||||
Reference in New Issue
Block a user