fix: upgrading to nextjs 14 (#2959)
This commit is contained in:
parent
df647cc82a
commit
ff03f8badb
17 changed files with 69 additions and 243 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import React from "react";
|
||||
|
||||
// next-themes
|
||||
import { useTheme } from "next-themes";
|
||||
// tooltip2
|
||||
|
|
@ -50,9 +49,9 @@ export const Tooltip: React.FC<Props> = ({
|
|||
hoverCloseDelay={closeDelay}
|
||||
content={
|
||||
<div
|
||||
className={`relative z-50 max-w-xs gap-1 rounded-md p-2 text-xs shadow-md border border-custom-border-200 ${
|
||||
className={`relative z-50 max-w-xs gap-1 rounded-md border border-custom-border-200 p-2 text-xs shadow-md ${
|
||||
theme === "custom" ? "bg-custom-background-100 text-custom-text-200" : "bg-black text-gray-400"
|
||||
} break-words overflow-hidden ${className}`}
|
||||
} overflow-hidden break-words ${className}`}
|
||||
>
|
||||
{tooltipHeading && (
|
||||
<h5 className={`font-medium ${theme === "custom" ? "text-custom-text-100" : "text-white"}`}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue