Skip to content

Conversation

@BatshevaTavger
Copy link
Collaborator

Added the DisplaySettings component, allowing users to change the website's theme and the location of popup notifications. The component includes options for theme selection and notification location with translation support.


.App-link {
color: #61dafb;
/* color: #a2ff00; */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove comments

import Footer from './stories/footer/FooterComponent';
import { SnackbarProvider } from 'notistack';
import './App.scss';
import { ThemeProvider} from './themes/ThemeProvider.jsx'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-order the imports

align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove all comments and use scss structure

import axios from 'axios';

const url = process.env.REACT_APP_SERVER_URL;
const url = process.env.REACT_APP_BASE_URL;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you use client url in axios middleware?

import { useTranslation } from 'react-i18next';
import Select from '../../stories/Select/Select.jsx';
import CONSTANTS from './constantSetting.js';
import './DisplaySettings.scss';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-order the imports

req.body.profileImage = req.file.originalname;


// שינוי פורמט התאריך, נניח אם יש שדה בשם date
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments for explanation should be in english

if(!mongoose.Types.ObjectId.isValid(id))
return next({message:'id is not valid'})
if (!mongoose.Types.ObjectId.isValid(id))
return next({ message: 'id is not valid' });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add status code

} catch (err) {
console.error(err);
next({message:err.message,status:500})
next({ message: err.message, status: 500 });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add return statement

res.json(visitedWebsites);
} catch (err) {
next({message:err.message,status:500})
res.status(500).json({ message: err.message });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add return statement

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove all necessary mp3 and jpg files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants