Skip to content

Commit

Permalink
Merge pull request #2252 from vasudhawaman/fix/icons-not-loading
Browse files Browse the repository at this point in the history
Fixed the loading icons
  • Loading branch information
codervivek5 authored Oct 16, 2024
2 parents c0d2534 + bf4b537 commit e06781e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Binary file added public/emoji1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/emoji2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/emoji3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/emoji4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/emoji5.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions src/User/components/FeedbackForm/Feedback.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,19 @@ const FeedbackModal = () => {
};

const emojis = [
"/src/User/components/FeedbackForm/emoji1.gif",
"/src/User/components/FeedbackForm/emoji2.gif",
"/src/User/components/FeedbackForm/emoji3.gif",
"/src/User/components/FeedbackForm/emoji4.gif",
"/src/User/components/FeedbackForm/emoji5.gif",
"/emoji1.gif",
"/emoji2.gif",
"/emoji3.gif",
"/emoji4.gif",
"/emoji5.gif",
];
const getEmoji = (ratingValue) => emojis[ratingValue - 1] || "😐";
const gifs = [
"/src/User/components/FeedbackForm/emoji1.gif",
"/src/User/components/FeedbackForm/emoji2.gif",
"/src/User/components/FeedbackForm/emoji3.gif",
"/src/User/components/FeedbackForm/emoji4.gif",
"/src/User/components/FeedbackForm/emoji5.gif",
"/emoji1.gif",
"/emoji2.gif",
"/emoji3.gif",
"/emoji4.gif",
"/emoji5.gif",
];
const getGif = (ratingValue) => gifs[ratingValue - 1] || "emoji3.gif"; // default to emoji3.gif if ratingValue is invalid

Expand Down

0 comments on commit e06781e

Please sign in to comment.