Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.
fix(ui): stop native-button warning on buttons rendered as links
spacesdrivef93ce5ac61de
diff --git a/frontend/src/components/ui/button.jsx b/frontend/src/components/ui/button.jsxindex 398a7eb..a9efcee 100644--- a/frontend/src/components/ui/button.jsx+++ b/frontend/src/components/ui/button.jsx@@ -1,3 +1,4 @@+import * as React from "react"import { Button as ButtonPrimitive } from "@base-ui/react/button"import { cva } from "class-variance-authority";@@ -43,12 +44,18 @@ function Button({className,variant = "default",size = "default",+ render,+ nativeButton,...props}) {+ // A link rendered through `render` is not a <button>, so Base UI must not expect native button semantics.+ const isNative = nativeButton ?? (render == null || (React.isValidElement(render) && render.type === "button"));return (<ButtonPrimitivedata-slot="button"className={cn(buttonVariants({ variant, size, className }))}+ render={render}+ nativeButton={isNative}{...props} />);}