Skip to content

Commit

Permalink
fixed deployment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-63 committed Sep 21, 2024
1 parent 5d3805c commit 6f3e432
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 0 additions & 2 deletions dashboard/src/components/general/theme-switcher.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client';

import { useState, useEffect } from 'react';
import { MoonStar, Sun } from 'lucide-react';
import { useTheme } from 'next-themes';
Expand Down
8 changes: 4 additions & 4 deletions dashboard/src/features/help/faq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import React, { useState } from 'react';
import Typography from '../../components/general/typography';
import { FaAngleDown, FaAngleUp } from 'react-icons/fa';

interface FAQItem {
interface FaqItem {
question: string;
answer: string;
}

const faqData: FAQItem[] = [
const faqData: FaqItem[] = [
{
question: 'How do I reset my password?',
answer:
Expand All @@ -25,7 +25,7 @@ const faqData: FAQItem[] = [
},
];

const FAQ: React.FC = () => {
const Faq: React.FC = () => {
const [activeIndex, setActiveIndex] = useState<number | null>(null);

const toggleFAQ = (index: number) => {
Expand Down Expand Up @@ -65,4 +65,4 @@ const FAQ: React.FC = () => {
);
};

export default FAQ;
export default Faq;
11 changes: 10 additions & 1 deletion dashboard/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,14 @@ export default defineConfig({
plugins: [react()],
build: {
sourcemap: true, // Enable source maps for production builds
chunkSizeWarningLimit: 1024, // Increase chunk size warning limit to 1kb
rollupOptions: {
output: {
manualChunks: {
// Split dependencies into a separate chunk
react: ['react', 'react-dom'],
},
},
},
},
});
});

0 comments on commit 6f3e432

Please sign in to comment.