Skip to content

Commit

Permalink
fix | Include missing dependencies needed for refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleDolezal committed Aug 13, 2023
1 parent 7e3ec69 commit 5965ec3
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/BusRouteDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import RidershipGraphic from "./stat-visuals/RidershipGraphic";
import PercentileGraphic from "./stat-visuals/PercentileGraphic";
import GhostingGraphic from "./stat-visuals/GhostingGraphic";
import ReliabilityRankGraphic from "./stat-visuals/ReliabilityRankGraphic";
import busIcon from "../assets/bus-icon.png";
import ghostIcon from "../assets/bxs_ghost.png";


function BusRouteDetails({ selectedRoute, busFraction }) {
const selectedRouteRidership = ridershipData.filter(
Expand Down
1 change: 1 addition & 0 deletions src/components/Filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import RankingLegend from "./RankingLegend";

const Filter = ({
currentFilters,
Expand Down
34 changes: 34 additions & 0 deletions src/components/RankingLegend.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import React from "react";

const RankingLegend = () => {
return (
<div className="filter-key">
<h4>Map Key by Percentile</h4>
<ul>
<li>
<span className="percentile-text">0-19%</span>
<span className="color-key one"></span>
</li>
<li>
<span className="percentile-text">20-39%</span>
<span className="color-key two"></span>
</li>
<li>
<span className="percentile-text">40-59%</span>
<span className="color-key three"></span>
</li>
<li>
<span className="percentile-text">60-79%</span>
<span className="color-key four"></span>
</li>
<li>
<span className="percentile-text">80-99%</span>
<span className="color-key five"></span>
</li>
</ul>
</div>
);
};


export default RankingLegend;

0 comments on commit 5965ec3

Please sign in to comment.