Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Sep 26, 2023
1 parent a92c696 commit de00f81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 6 additions & 7 deletions ui/src/components/Layouts/FloatingHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Button, theme } from "antd";
import style from "./FloatingHeader.module.scss";
import Notification from "components/General/Notification";
import Icon from "components/General/Icon";
import { openLink } from "lib/utils/helper";
import { Link } from "react-router-dom";

const FloatingHeader = () => {
const {
Expand All @@ -17,12 +17,11 @@ const FloatingHeader = () => {
}}
>
<Notification colorText={colorText} />
<Button
className={style.fb__button}
onClick={() => openLink("/feedback", false)}
>
<Icon name="Megaphone" size={20} color={colorText} />
</Button>
<Link to="/feedback">
<Button className={style.fb__button}>
<Icon name="Megaphone" size={20} color={colorText} />
</Button>
</Link>
</div>
);
};
Expand Down
4 changes: 3 additions & 1 deletion ui/src/components/Layouts/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ const Footer: React.FC = () => {
<Typography.Title level={4}>Company</Typography.Title>
<ul className={style.footer__list}>
<li>
<a onClick={() => openLink("/about", false)}>About</a>
<Link to={"/about"}>
<a>About</a>
</Link>
</li>
{/* <li>
<a
Expand Down

0 comments on commit de00f81

Please sign in to comment.