Skip to content
Snippets Groups Projects
Commit 134cc3c5 authored by amasek6's avatar amasek6
Browse files

added images for piechart and barchart

parent 6a35f638
Branches
Tags
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import { useSelector, useDispatch } from 'react-redux'; import { useSelector, useDispatch } from 'react-redux';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import piechart from './prototype/piechart.png';
import barchart from './prototype/barchart.png';
import classNames from 'classnames'; import classNames from 'classnames';
import styles from './audit.module.css'; import styles from './audit.module.css';
...@@ -177,7 +179,8 @@ SpecificCreditInfo.propTypes = { ...@@ -177,7 +179,8 @@ SpecificCreditInfo.propTypes = {
function ShowCreditDetails(props){ function ShowCreditDetails(props){
return ( return (
<div className={styles.detailBox}> <div className={styles.detailBox}>
<img src={piechart} alt="piechart showing credits remaining" className={styles.image} />
<img src={barchart} alt="barchart showing credits remaining" className={styles.image} />
</div> </div>
); );
} }
......
...@@ -76,4 +76,12 @@ ...@@ -76,4 +76,12 @@
background-color: rgb(255 255 255); background-color: rgb(255 255 255);
font-size: 3em; font-size: 3em;
min-height: 2em; min-height: 2em;
display: flex;
justify-content: center;
}
.image {
max-height: 6.5em;
justify-content: center;
padding: 0.5em;
} }
csce378Project/src/features/myRed/prototype/barchart.png

13.8 KiB

csce378Project/src/features/myRed/prototype/piechart.png

24.1 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment