forked from janus-idp/backstage-plugins
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bulk-import): update bulk import icon (janus-idp#1826)
- Loading branch information
Showing
4 changed files
with
71 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
import React from 'react'; | ||
|
||
import { SidebarItem } from '@backstage/core-components'; | ||
import { IconComponent } from '@backstage/core-plugin-api'; | ||
|
||
import LibraryAddOutlinedIcon from '@mui/icons-material/LibraryAddOutlined'; | ||
import { getImageForIconClass } from '../utils/icons'; | ||
|
||
export const icon = () => { | ||
return ( | ||
<img | ||
src={getImageForIconClass('icon-bulk-import-white')} | ||
alt="bulk import icon" | ||
style={{ height: '25px' }} | ||
/> | ||
); | ||
}; | ||
|
||
export const BulkImportIcon = () => { | ||
// permission logic | ||
|
||
return ( | ||
<SidebarItem | ||
text="Bulk import" | ||
to="bulk-import/repositories" | ||
icon={LibraryAddOutlinedIcon as IconComponent} | ||
/> | ||
<SidebarItem text="Bulk import" to="bulk-import/repositories" icon={icon} /> | ||
); | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters