Skip to content

Commit

Permalink
refractor(ui): rename GraphFooter, change font
Browse files Browse the repository at this point in the history
  • Loading branch information
elegantShock2258 committed Jan 18, 2024
1 parent 644d744 commit 8ff1e14
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
background: #ffffff05 !important;
font-size: 1rem;
box-shadow: none !important;
font-family: monospace !important;
align-self: end;
}

Expand All @@ -14,6 +15,8 @@
font-size: 3rem;
text-align: center;
border: 1px solid #ffffff50 !important;

font-family: monospace !important;
}
.button:hover{
background-color: transparent !important;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ButtonGroup, Dropdown } from 'react-bootstrap';
import styles from './GraphFooter.module.css';
import styles from './GraphSelector.module.css';
import DropdownMenu from 'react-bootstrap/esm/DropdownMenu';
const GraphFooter = ({ graph, selected, setSelected }: GraphFooterProps) => {
const GraphSelecter = ({ graph, selected, setSelected }: GraphFooterProps) => {
return (
<div>
<Dropdown as={ButtonGroup} drop="down-centered">
Expand All @@ -28,4 +28,4 @@ const GraphFooter = ({ graph, selected, setSelected }: GraphFooterProps) => {
</div>
);
};
export default GraphFooter;
export default GraphSelecter;
4 changes: 2 additions & 2 deletions src/pages/Statistics/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Tooltip,
Bar,
} from 'recharts';
import GraphFooter from '../../components/GraphFooter/GraphFooter';
import GraphSelecter from '../../components/GraphFooter/GraphSelector';
import { apiConfig, ApiError } from '../../api/ApiConfig';
import { StatsApi } from '@codecharacter-2024/client';
import { useState, useEffect } from 'react';
Expand Down Expand Up @@ -73,7 +73,7 @@ const Statistics = () => {
</div>
<div className={styles.bg}>
<div className={styles.graphContainer}>
<GraphFooter
<GraphSelecter
graph={titles}
selected={selected}
setSelected={setSelected}
Expand Down

0 comments on commit 8ff1e14

Please sign in to comment.