Skip to content

Commit

Permalink
add feedback link in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Aug 29, 2024
1 parent d9117fb commit 1df1fff
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/layouts/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ const Menu: React.FC = () => {

const handleClick = () => {
setOpen(!open);
if (title !== 'Feedback') onClick(to);
// if (title !== 'Feedback') onClick(to);
onClick(to);
};

const renderContent = () => (
Expand All @@ -121,7 +122,7 @@ const Menu: React.FC = () => {
</>
);

return title === 'Feedback' ? (
return title === 'Feedbacks' ? (
<button onClick={handleClick} className={getButtonClasses()} data-featurebase-feedback>
{renderContent()}
</button>
Expand Down Expand Up @@ -192,7 +193,8 @@ const Menu: React.FC = () => {
false,
<KadoIcon />
)}
{renderLink('', 'Feedback', setLink, false, <FeedBackIcon />)}
{/* {renderLink('https://defi.featurebase.app/', 'Feedback', setLink, false, <FeedBackIcon />)} */}
{renderLink('https://defi.featurebase.app/', 'Feedback', () => {}, true, <FeedBackIcon />, false)}
</div>
);

Expand Down Expand Up @@ -249,6 +251,7 @@ const Menu: React.FC = () => {
{renderLink('https://t.me/oraidex', 'Join our Community', () => {}, true, <TelegramIcon />, false)}
{renderLink('https://twitter.com/oraidex', 'Twitter', () => {}, true, <TwitterIcon />, false)}
{renderLink('https://t.me/SamORAI_bot', 'Contact us', () => {}, true, <SupportIcon />, false)}
{renderLink('https://defi.featurebase.app/', 'Feedback', () => {}, true, <FeedBackIcon />, false)}
</div>
}
/>
Expand Down

0 comments on commit 1df1fff

Please sign in to comment.