Skip to content

Commit

Permalink
fix menu
Browse files Browse the repository at this point in the history
  • Loading branch information
atimin committed Jun 23, 2024
1 parent c3e12df commit 0757dd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
}

.ant-menu-item-active {
background-color: #531dab !important;
background-color: #cccccc !important;
color: #231b49 !important;
}
12 changes: 6 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type State = {
permissions?: TokenPermissions;
};

const primaryColor = "#231b49";
const PRIMARY_COLOR = "#231b49";

export default class App extends React.Component<Props, State> {
constructor(props: Props) {
Expand Down Expand Up @@ -67,14 +67,14 @@ export default class App extends React.Component<Props, State> {
<ConfigProvider
theme={{
token: {
colorPrimary: primaryColor,
colorLink: primaryColor,
colorPrimary: PRIMARY_COLOR,
colorLink: PRIMARY_COLOR,
},
components: {
Menu: {
colorBgContainer: primaryColor,
colorBgContainer: PRIMARY_COLOR,
colorText: "#cccccc",
colorLink: primaryColor,
colorLink: PRIMARY_COLOR,
colorLinkHover: "#111",
},
},
Expand All @@ -83,7 +83,7 @@ export default class App extends React.Component<Props, State> {
<Layout style={{ minHeight: "100vh" }}>
<Layout.Sider
className="Sider"
style={{ backgroundColor: primaryColor }}
style={{ backgroundColor: PRIMARY_COLOR }}
>
<Menu
className="MenuItem"
Expand Down

0 comments on commit 0757dd9

Please sign in to comment.