Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion prisma.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ import 'dotenv/config'
import { defineConfig } from 'prisma/config'

export default defineConfig({
earlyAccess: true,
schema: './prisma/schema.prisma',
})
4 changes: 2 additions & 2 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MetadataRoute } from 'next';
import { type Locale, i18n } from '@/components/internationalization/config';
import { i18n } from '@/components/internationalization/config';

const locales: Locale[] = i18n.locales;
const locales = i18n.locales;
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || 'http://localhost:3001';

// Define all your pages here
Expand Down
4 changes: 2 additions & 2 deletions src/components/chatbot/chat-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export function ChatButton({
dictionary
}: ChatButtonProps) {
const [shouldInvert, setShouldInvert] = useState(false);
const checkTimeoutRef = useRef<NodeJS.Timeout>();
const rafRef = useRef<number>();
const checkTimeoutRef = useRef<NodeJS.Timeout | null>(null);
const rafRef = useRef<number | null>(null);

useEffect(() => {
const checkSections = () => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/marketing/pricing/sections/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export default function Features() {

<div className="mt-12 grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
{features.map((feature) => {
const Icon = Icons[feature.icon || "nextjs"];
const iconKey = (feature.icon || "nextjs") as keyof typeof Icons;
const Icon = Icons[iconKey];
return (
<div
className="group relative overflow-hidden rounded-2xl border bg-background p-5 md:p-8"
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/language-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ export function LanguageSwitcher() {
router.push(href);
};

const currentLanguage = localeConfig[locale as Locale];
const currentLanguage = localeConfig[locale];

return (
<Select value={locale} onValueChange={handleLanguageChange}>
<SelectTrigger className="w-auto min-w-[120px] gap-2">
<Languages className="h-4 w-4" />
<SelectValue>
{currentLanguage?.nativeName || currentLanguage?.name}
{currentLanguage?.nativeName}
</SelectValue>
</SelectTrigger>
<SelectContent>
Expand Down
1 change: 1 addition & 0 deletions src/components/ui/optimized-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ interface OptimizedImageProps extends ComponentProps<'img'> {
priority?: boolean;
placeholder?: 'blur' | 'empty';
blurDataURL?: string;
quality?: number;
}

export function OptimizedImage({
Expand Down
2 changes: 1 addition & 1 deletion src/components/wizard/branding/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function updateBranding(
if (error instanceof z.ZodError) {
return {
success: false,
error: error.errors[0]?.message || "Validation failed",
error: error.issues[0]?.message || "Validation failed",
};
}

Expand Down