mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-05 23:16:57 -06:00
Add Balancer to ItemCard descriptions, add Balancer Provider to app root
This commit is contained in:
@@ -3,6 +3,7 @@ import {useOnClickOutside, useToggle} from "usehooks-ts";
|
||||
import {classNames, isHoverable} from "../utils/helpers";
|
||||
import DependentImage from "./DependentImage";
|
||||
import ReactMarkdown from 'react-markdown'
|
||||
import Balancer from "react-wrap-balancer";
|
||||
|
||||
import Link from "next/link";
|
||||
import {useRouter} from "next/router";
|
||||
@@ -59,7 +60,9 @@ const ItemCard = ({banner, bannerBlur, title, description, links, location, bann
|
||||
e.stopPropagation();
|
||||
navigate();
|
||||
}}>
|
||||
<ReactMarkdown>{description}</ReactMarkdown>
|
||||
<Balancer>
|
||||
<ReactMarkdown>{description}</ReactMarkdown>
|
||||
</Balancer>
|
||||
</div>
|
||||
</div>
|
||||
{(links?.length ?? 0) > 0 ?
|
||||
|
||||
@@ -1,15 +1,19 @@
|
||||
import {type AppType} from "next/app";
|
||||
import { type AppType } from "next/app";
|
||||
|
||||
import {trpc} from "../utils/trpc";
|
||||
import { trpc } from "../utils/trpc";
|
||||
|
||||
import "../styles/globals.scss";
|
||||
import {Analytics} from "@vercel/analytics/react";
|
||||
|
||||
const MyApp: AppType = ({Component, pageProps}) => {
|
||||
return <>
|
||||
import { Analytics } from "@vercel/analytics/react";
|
||||
import { Provider } from "react-wrap-balancer";
|
||||
const MyApp: AppType = ({ Component, pageProps }) => {
|
||||
return (
|
||||
<>
|
||||
<Provider>
|
||||
<Component {...pageProps} />
|
||||
<Analytics/>
|
||||
</>;
|
||||
</Provider>
|
||||
<Analytics />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default trpc.withTRPC(MyApp);
|
||||
|
||||
Reference in New Issue
Block a user