File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed
screens/Console/Dashboard/BasicDashboard Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 1+ // This file is part of MinIO Console Server
2+ // Copyright (c) 2021 MinIO, Inc.
3+ //
4+ // This program is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU Affero General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+ //
9+ // This program is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU Affero General Public License for more details.
13+ //
14+ // You should have received a copy of the GNU Affero General Public License
15+ // along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
17+ import * as React from "react" ;
18+ import { SvgIcon , SvgIconProps } from "@material-ui/core" ;
19+
20+ const VersionIcon = ( props : SvgIconProps ) => {
21+ return (
22+ < SvgIcon { ...props } >
23+ < svg
24+ xmlns = "http://www.w3.org/2000/svg"
25+ width = "1em"
26+ height = "1em"
27+ viewBox = "0 0 123.523 250.048"
28+ >
29+ < path d = "M122.868 61.247q-9.479-15.673-19.012-31.309c-3.3-5.408-6.654-10.786-10-16.167l-1.325-1.954c-6.086-9.265-18.136-15.384-29.822-9.5-10.457 5.262-14.978 17.8-9.618 28.2 2.035 3.947 5.414 7.281 8.518 10.58 9.561 10.159 19.427 20.03 28.91 30.258a29.852 29.852 0 01-10.4 48.02l-.636.26V72.047a154.076 154.076 0 00-44.533 34.5c-19.719 22-31.377 49.48-34.95 69.532 10.834-5.516 21.518-10.959 32.206-16.4 10.708-5.444 21.342-10.792 32.457-16.439v91.767l14.825 15.04V135.519s.338-.161 1.449-.756c4.371-2.328 8.957-4.368 12.991-7.195a43.9 43.9 0 006.439-66.377C89.354 49.673 78.29 38.206 67.292 26.676c-3.2-3.358-3.131-7.607-.009-10.574 3.045-2.9 7.4-2.65 10.625.6 1.533 1.545 11.859 12.453 15.54 16.314q13.952 14.615 27.951 29.176a19.907 19.907 0 001.545 1.324l.58-.341a9.257 9.257 0 00-.656-1.928zm-58.237 64.956a2.675 2.675 0 01-1.356 1.808c-5.895 3.125-11.838 6.167-17.775 9.217-7.041 3.619-14.092 7.219-21.642 11.091a140.009 140.009 0 0140.548-50.246l.263-.218c.011 9.192.044 19.154-.038 28.348z" />
30+ </ svg >
31+ </ SvgIcon >
32+ ) ;
33+ } ;
34+
35+ export default VersionIcon ;
Original file line number Diff line number Diff line change @@ -76,3 +76,4 @@ export { default as TotalObjectsIcon } from "./TotalObjectsIcon";
7676export { default as CircleIcon } from "./CircleIcon" ;
7777export { default as PreviewIcon } from "./PreviewIcon" ;
7878export { default as LockIcon } from "./LockIcon" ;
79+ export { default as VersionIcon } from "./VersionIcon" ;
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import {
2828 ServersIcon ,
2929 StorageIcon ,
3030 TotalObjectsIcon ,
31+ VersionIcon ,
3132} from "../../../../icons" ;
3233import { Card , CardHeader } from "@material-ui/core" ;
3334
@@ -143,7 +144,7 @@ const BasicDashboard = ({ classes, usage }: IDashboardProps) => {
143144 { usage
144145 ? usage . servers . length !== 0 && (
145146 < CardHeader
146- avatar = { < TotalObjectsIcon /> }
147+ avatar = { < VersionIcon /> }
147148 title = "MinIO Version"
148149 subheader = { usage ? usage . servers [ 0 ] . version : 0 }
149150 />
You can’t perform that action at this time.
0 commit comments