Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(desktop): about page menu icons #1742

Merged
merged 1 commit into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/* eslint react/display-name: off */
import generalSVG from "./icons/general.svg";
import aboutSVG from "./icons/about.svg";
import hotkeySVG from "./icons/hotkey.svg";
import "./UserSettingLayoutContainer.less";

import React, { useContext, useEffect } from "react";
import { SVGApps, SVGCode } from "flat-components";
import { SVGApps, SVGCircleInfoOutlined, SVGCode, SVGGeneral, SVGShortcut } from "flat-components";
import { useTranslate } from "@netless/flat-i18n";
import { PageStoreContext } from "@netless/flat-pages/src/components/StoreProvider";
import { routeConfig, RouteNameType } from "../../route-config";
Expand All @@ -19,13 +16,13 @@ export const UserSettingLayoutContainer: React.FC = ({ children }): React.ReactE
subMenu: [
{
key: routeConfig[RouteNameType.GeneralSettingPage].path,
icon: (): React.ReactNode => <img src={generalSVG} />,
icon: (active): React.ReactNode => <SVGGeneral active={active} />,
title: t("general-settings"),
route: routeConfig[RouteNameType.GeneralSettingPage].path,
},
{
key: routeConfig[RouteNameType.HotKeySettingPage].path,
icon: (): React.ReactNode => <img src={hotkeySVG} />,
icon: (active): React.ReactNode => <SVGShortcut active={active} />,
title: t("shortcut-settings"),
route: routeConfig[RouteNameType.HotKeySettingPage].path,
},
Expand All @@ -51,7 +48,7 @@ export const UserSettingLayoutContainer: React.FC = ({ children }): React.ReactE
},
{
key: routeConfig[RouteNameType.AboutPage].path,
icon: (): React.ReactNode => <img src={aboutSVG} />,
icon: (active): React.ReactNode => <SVGCircleInfoOutlined active={active} />,
title: t("about-us"),
route: routeConfig[RouteNameType.AboutPage].path,
},
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.