|
1 |
| -import { useDispatch } from 'react-redux' |
| 1 | +import { useDispatch, useSelector } from 'react-redux' |
2 | 2 | import { useState, useEffect } from 'react'
|
3 | 3 | import PropTypes from 'prop-types'
|
4 | 4 | import { enqueueSnackbar as enqueueSnackbarAction, closeSnackbar as closeSnackbarAction, SET_CHATFLOW } from '@/store/actions'
|
@@ -41,6 +41,7 @@ const availableFileTypes = [
|
41 | 41 |
|
42 | 42 | const FileUpload = ({ dialogProps }) => {
|
43 | 43 | const dispatch = useDispatch()
|
| 44 | + const customization = useSelector((state) => state.customization) |
44 | 45 |
|
45 | 46 | useNotifier()
|
46 | 47 |
|
@@ -234,14 +235,18 @@ const FileUpload = ({ dialogProps }) => {
|
234 | 235 | <Box
|
235 | 236 | sx={{
|
236 | 237 | borderRadius: 2,
|
237 |
| - border: '1px solid #e0e0e0', |
238 |
| - backgroundColor: '#fafafa', |
| 238 | + border: customization.isDarkMode ? '1px solid #424242' : '1px solid #e0e0e0', |
| 239 | + backgroundColor: customization.isDarkMode ? '#2d2d2d' : '#fafafa', |
239 | 240 | padding: 3,
|
240 | 241 | marginBottom: 3,
|
241 | 242 | marginTop: 2
|
242 | 243 | }}
|
243 | 244 | >
|
244 |
| - <Typography sx={{ fontSize: 16, fontWeight: 600, marginBottom: 2, color: '#424242' }}>PDF Configuration</Typography> |
| 245 | + <Typography |
| 246 | + sx={{ fontSize: 16, fontWeight: 600, marginBottom: 2, color: customization.isDarkMode ? '#ffffff' : '#424242' }} |
| 247 | + > |
| 248 | + PDF Configuration |
| 249 | + </Typography> |
245 | 250 |
|
246 | 251 | <Box>
|
247 | 252 | <Typography sx={{ fontSize: 14, fontWeight: 500, marginBottom: 1 }}>PDF Usage</Typography>
|
|
0 commit comments