Update AI context for Tailwind v4 and React 19

- AGENTS.md: describe ui components as React 19 ref-as-prop function
  components using data-slot and the unified radix-ui package
- theming skill: register fonts and color tokens via @theme in
  src/index.css (no tailwind.config.ts); fix color values to use the
  hsl() wrapper that matches the real index.css
- ai-chat skill: import VisuallyHidden from the unified radix-ui package
- nwc skill: convert ZapDialog/WalletModal forwardRef to ref-as-prop
- edit-profile skill: drop React.FC in favor of plain function typing
This commit is contained in:
Alex Gleason committed 2026-06-05 09:43:15 -05:00
1 parent 459221305f
commit 772479e232
6 files changed
+41 -44

No files matched your search

@@ -22,7 +22,7 @@ import { NSchema as n, type NostrMetadata } from '@nostrify/nostrify';
import { useQueryClient } from '@tanstack/react-query';
import { useUploadFile } from '@/hooks/useUploadFile';
export const EditProfileForm: React.FC = () => {
export const EditProfileForm = () => {
const queryClient = useQueryClient();
const { user, metadata } = useCurrentUser();
@@ -284,14 +284,14 @@ interface ImageUploadFieldProps {
onUpload: (file: File) => void;
}
const ImageUploadField: React.FC<ImageUploadFieldProps> = ({
const ImageUploadField = ({
field,
label,
placeholder,
description,
previewType,
onUpload,
}) => {
}: ImageUploadFieldProps) => {
const fileInputRef = useRef<HTMLInputElement>(null);
return (