Skip to content

Commit

Permalink
Bugged Array
Browse files Browse the repository at this point in the history
  • Loading branch information
Vercin-G committed Sep 11, 2023
1 parent 92fab35 commit 5112564
Show file tree
Hide file tree
Showing 6 changed files with 283 additions and 49 deletions.
238 changes: 207 additions & 31 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"apexcharts": "^3.42.0",
"express": "^4.17.2",
"react": "^17.0.2",
"react-apexcharts": "^1.4.1",
"react-collapsible": "^2.8.4",
"react-dom": "^17.0.2",
"react-minimal-pie-chart": "^8.4.0",
"react-scripts": "5.0.0",
"web-vitals": "^2.1.4"
},
Expand Down
24 changes: 11 additions & 13 deletions client/src/App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { useEffect, useState } from "react";
import React, { useEffect, useState} from "react";
import "./App.css";
import Collapsible from "react-collapsible";
import lists from "./modules/Generic/BilletBank";
import MilpacParse from "./modules/Generic/MilpacParse";
import StrengthCount from "./modules/Generic/StrengthCount";
import ErrorMessage from "./errorMessage";
import { PieChart } from 'react-minimal-pie-chart';
import Piechart from "./modules/Generic/Piechart"
const CLIENT_TOKEN = process.env.REACT_APP_CLIENT_TOKEN;
const combatApiUrl = process.env.REACT_APP_COMBAT_API_URL;
const reserveApiUrl = process.env.REACT_APP_RESERVE_API_URL;
Expand Down Expand Up @@ -77,8 +77,6 @@ function MilpacRequest() {

var piechartArray = [];

var testnumber = 500

var milpacArray = [];
milpacArray.push({
combat: milpacList,
Expand Down Expand Up @@ -510,15 +508,15 @@ function MilpacRequest() {
subSubtitle={"Charlie Co"}
/>
</div>
<div className="OneSevenBreakdown">
<PieChart
data={[
{ title: 'One', value: 2, color: '#E38627' },
{ title: 'Two', value: 3, color: '#C13C37' },
{ title: 'Three', value: 3, color: '#6A2135' },
]}
/>
</div>
{/*<div className="OneSevenBreakdown">
<Piechart
piechartArray = {piechartArray}
useSelector0={false}
useSelector2={true}
useSelector4={true}
useSelector6={true}
/>
</div> */}
<div className="TwoSevenStrength">
<StrengthCount
piechartArray={piechartArray}
Expand Down
Loading

0 comments on commit 5112564

Please sign in to comment.