Skip to content

Commit

Permalink
refactor: Implement lazy loading for images in DashboardV2 and update…
Browse files Browse the repository at this point in the history
… chat route
  • Loading branch information
Arghya721 committed Jun 9, 2024
1 parent aa603bf commit ab2b01b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions web/src/pages/DashboardV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import DividerWithText from '../components/DividerWithText';
import loading from '../images/loading.webp';
import { AiOutlineReload } from 'react-icons/ai';
import LoadingSpinner from '../components/LoadingSpinner';
import { useTheme } from '../components/ThemeContext';

export const DashboardV2 = () => {
const { chatIdParams } = useParams();
Expand All @@ -45,7 +44,6 @@ export const DashboardV2 = () => {
const [isRequestFailed, setIsRequestFailed] = useState(false); // New state for request failed
const chatWindowRef = useRef(null);
const { isOpen, onOpen, onClose } = useDisclosure();
const { theme } = useTheme();

const limitSentence = (sentence) => {
// limit chat title to 30 characters
Expand Down

0 comments on commit ab2b01b

Please sign in to comment.