Skip to content

Commit

Permalink
merge changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SinithH committed Mar 25, 2024
1 parent 13a8a46 commit 7cd15d9
Show file tree
Hide file tree
Showing 43 changed files with 204 additions and 889 deletions.
Binary file removed client/assets/icons/star (1).png
Binary file not shown.
Binary file removed client/assets/icons/star.png
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// import React from 'react';
// import Header from '../shared/Header';
// import ModuleNames from '../../constants/Modules';
// import Footer from '../shared/Footer';
import React from 'react';
import Header from '../shared/Header';
import ModuleNames from '../../constants/Modules';
import Footer from '../shared/Footer';

// const ImageRecognition: React.FC = () => {
// return (
// <>
// <div>
// <Header heading={ModuleNames.IMAGE_RECOGNITION}/>
// {/* Add content for Image Recognition screen */}
// </div>
// <Footer/>
// </>
// );
// };
const ImageRecognition: React.FC = () => {
return (
<>
<div>
<Header heading={ModuleNames.IMAGE_RECOGNITION}/>
{/* Add content for Image Recognition screen */}
</div>
<Footer/>
</>
);
};

// export default ImageRecognition;
export default ImageRecognition;
142 changes: 0 additions & 142 deletions client/entrypoints/sidepanel/components/FeedBack/FeedBackPopover.tsx

This file was deleted.

15 changes: 9 additions & 6 deletions client/entrypoints/sidepanel/components/MainMenu/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ import summaryIcon from '@/assets/icons/summary-icon.png';
import navigationIcon from '@/assets/icons/navigation-icon.svg';
import imageRecIcon from '@/assets/icons/image-rec-icon.svg';
import feedbackIcon from '@/assets/icons/feedback-icon.svg';
import FeedBackPopover from '../FeedBack/FeedBackPopover';
import { Link } from 'react-router-dom';
import useStore from '../../context/store';
import {Popover,PopoverHandler,PopoverContent,Button,Input,Typography,} from "@material-tailwind/react";

const MainMenu: React.FC = () => {

const [hover, setHover] = useState('');
const [isPopoverOpen, setIsPopoverOpen] = useState(false);

const {userSettings} = useStore();
const handlePopoverClick = () => {
setIsPopoverOpen(!isPopoverOpen);
Expand All @@ -27,9 +25,14 @@ const MainMenu: React.FC = () => {
};

useEffect(() => {
setMode(userSettings?.theme || '');
}, [userSettings]);

if(userSettings && userSettings.theme == 'dark') {
setMode('bg-darkBg text-white');
setHover('hover:bg-darkTileHover')
}else{
setHover('hover:bg-slate-200');
}
}, [userSettings])

return (
<div className={`${mode} dark:bg-darkBg dark:text-white grid p-4 max-w-screen-md mx-auto text-xl font-kanit h-full overflow-y-hidden`}>

Expand Down
3 changes: 1 addition & 2 deletions client/entrypoints/sidepanel/constants/Modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ const ModuleNames = {
NAVIGATION: 'Navigation',
SUMMARIZATION: 'Summarization',
IMAGE_RECOGNITION: 'Image Recognition',
MY_ACCOUNT: 'My Account',
FEED_BACK:"Feedback"
MY_ACCOUNT: 'My Account'
}

export default ModuleNames;
Loading

0 comments on commit 7cd15d9

Please sign in to comment.