File tree Expand file tree Collapse file tree 4 files changed +17
-14
lines changed Expand file tree Collapse file tree 4 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 5
5
AccordionTrigger ,
6
6
} from "@/components/ui/accordion"
7
7
8
-
9
8
export function Faq ( ) {
10
9
const faqs = [
11
10
{
@@ -28,9 +27,9 @@ export function Faq() {
28
27
return (
29
28
< div className = "grid grid-cols-1 md:grid-cols-1 lg:grid-cols-1 relative z-10 py-10 max-w-7xl mx-auto" >
30
29
< h1 > FAQS</ h1 >
31
- { faqs . map ( data => (
32
- < Accordion type = "single" collapsible >
33
- < AccordionItem value = " item-1" >
30
+ { faqs . map ( ( data , index ) => (
31
+ < Accordion key = { index } type = "single" collapsible >
32
+ < AccordionItem value = { ` item-${ index } ` } >
34
33
< AccordionTrigger > { data . question } </ AccordionTrigger >
35
34
< AccordionContent >
36
35
{ data . answer }
@@ -39,6 +38,5 @@ export function Faq() {
39
38
</ Accordion >
40
39
) ) }
41
40
</ div >
42
-
43
41
) ;
44
42
}
Original file line number Diff line number Diff line change 1
- import './index.css'
2
- import ReactDOM from 'react-dom' ;
1
+ import './index.css' ;
2
+ import ReactDOM from 'react-dom/client ' ;
3
3
import App from './App' ;
4
4
import { Provider } from 'react-redux' ;
5
- import store from './lib/store' ; // Import the Redux store
5
+ import store from './lib/store' ;
6
6
7
- ReactDOM . render (
8
- < Provider store = { store } > { /* Provide the store to your app */ }
7
+ const container = document . getElementById ( 'root' ) ;
8
+ const root = ReactDOM . createRoot ( container ! ) ;
9
+
10
+ root . render (
11
+ < Provider store = { store } >
9
12
< App />
10
- </ Provider > ,
11
- document . getElementById ( 'root' )
12
- ) ;
13
+ </ Provider >
14
+ ) ;
Original file line number Diff line number Diff line change
1
+ .env
2
+ chat.db
3
+ venv /
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ COPY . .
10
10
11
11
EXPOSE 5000
12
12
13
- CMD ["flask" , "run" ]
13
+ CMD ["flask" , "run" , "--host=0.0.0.0" ]
You can’t perform that action at this time.
0 commit comments