Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit d8aebdd

Browse files
committed
options added to menu
1 parent a9610dd commit d8aebdd

File tree

4 files changed

+14
-28
lines changed

4 files changed

+14
-28
lines changed

src/components/CsvButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import Button from "@mui/material/Button";
21
import { CsvButtonProps } from "cdm/MenuBarModel";
32
import {
43
normalizeColumnsToCsvHeader,
54
normalizeRowsToCsvData,
65
} from "parsers/NormalizeRowsToCSV";
76
import React from "react";
87
import { CSVLink } from "react-csv";
9-
import DownloadIcon from "components/img/DownloadIcon";
8+
import DownloadIcon from "@mui/icons-material/Download";
9+
import { MenuButtonStyle } from "components/styles/NavBarStyles";
1010

1111
const CsvButton = (CsvButtonProps: CsvButtonProps) => {
1212
const { columns, rows, name } = CsvButtonProps;
@@ -35,7 +35,7 @@ const CsvButton = (CsvButtonProps: CsvButtonProps) => {
3535
ref={csvLink}
3636
target="_blank"
3737
>
38-
<DownloadIcon />
38+
<DownloadIcon {...MenuButtonStyle} />
3939
Download CSV
4040
</CSVLink>
4141
</>

src/components/NavBar.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import Toolbar from "@mui/material/Toolbar";
1717
import { c } from "helpers/StylesHelper";
1818
import Typography from "@mui/material/Typography";
1919
import DataviewFilters from "components/reducers/DataviewFilters";
20+
import { MenuButtonStyle } from "components/styles/NavBarStyles";
2021
import { SettingsModal } from "Settings";
2122

2223
export function NavBar(navBarProps: NavBarProps) {
@@ -98,11 +99,11 @@ export function NavBar(navBarProps: NavBarProps) {
9899
}}
99100
>
100101
<MenuItem onClick={handleSettingsClick} disableRipple>
101-
<SettingsIcon />
102+
<SettingsIcon {...MenuButtonStyle} />
102103
Settings
103104
</MenuItem>
104105
<MenuItem onClick={handleOpenAsMarkdownClick} disableRipple>
105-
<InsertDriveFileIcon />
106+
<InsertDriveFileIcon {...MenuButtonStyle} />
106107
Open as Markdown
107108
</MenuItem>
108109
<MenuItem disableRipple>

src/components/img/DownloadIcon.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/components/styles/NavBarStyles.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,11 @@ export const PaginationButtonStyle = {
5555
},
5656
backgroundColor: StyleVariables.TEXT_ACCENT,
5757
}
58-
}
58+
}
59+
60+
export const MenuButtonStyle = {
61+
sx: {
62+
color: StyleVariables.TEXT_ACCENT_HOVER,
63+
}
64+
}
65+

0 commit comments

Comments
 (0)