This repository was archived by the owner on Jul 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +14
-28
lines changed
Expand file tree Collapse file tree 4 files changed +14
-28
lines changed Original file line number Diff line number Diff line change 1- import Button from "@mui/material/Button" ;
21import { CsvButtonProps } from "cdm/MenuBarModel" ;
32import {
43 normalizeColumnsToCsvHeader ,
54 normalizeRowsToCsvData ,
65} from "parsers/NormalizeRowsToCSV" ;
76import React from "react" ;
87import { 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
1111const 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 </ >
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import Toolbar from "@mui/material/Toolbar";
1717import { c } from "helpers/StylesHelper" ;
1818import Typography from "@mui/material/Typography" ;
1919import DataviewFilters from "components/reducers/DataviewFilters" ;
20+ import { MenuButtonStyle } from "components/styles/NavBarStyles" ;
2021import { SettingsModal } from "Settings" ;
2122
2223export 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 >
Load Diff This file was deleted.
Original file line number Diff line number Diff 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+
You can’t perform that action at this time.
0 commit comments