Skip to content

Commit

Permalink
Massive simpilifying rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
rissois committed Jul 1, 2024
1 parent c99e02b commit bb97d68
Show file tree
Hide file tree
Showing 10 changed files with 337 additions and 398 deletions.
10 changes: 5 additions & 5 deletions react-ui/src/pages/analyzeVotes/AnalyzeVotes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import useContestId from '../../data/useContestId';
import useSwrContests from '../../data/useSwrContests';
import useSwrModAnalyze from '../../data/useSwrModAnalyze';

import CompareAverages from './CompareAverages';
import CompareVotes from './CompareVotes';
import DeviationFromMean from './DeviationFromMean';
import PearsonsCorrelation from './PearsonsCorrelation';
import UserVsAverage from './UserVsAverage';
import UserVsUser from './UserVsUser';

const useStyles = makeStyles(() => ({
selector: {
Expand All @@ -46,7 +46,7 @@ function UserSelector({
username, noVotes, setUsername, usernames, title,
}) {
const classes = useStyles(0);
const arrows = title === 'User: ' ? 'left-right' : 'up-down';
const arrows = title === 'User 1: ' ? 'left-right' : 'up-down';

return (
<Box className={classes.sideBySide}>
Expand Down Expand Up @@ -182,7 +182,7 @@ function AnalyzeVotes() {

</Box>
<Box>
<CompareAverages {...{
<UserVsAverage {...{
username, votes, entryAvg, entryUserLookup, entryPositionLookup,
}}
/>
Expand All @@ -208,7 +208,7 @@ function AnalyzeVotes() {

</Box>
<Box>
<CompareVotes {...{
<UserVsUser {...{
username, votes, entryAvg, entryUserLookup, username2, entryPositionLookup,
}}
/>
Expand Down
105 changes: 0 additions & 105 deletions react-ui/src/pages/analyzeVotes/CompareAverages.jsx

This file was deleted.

136 changes: 0 additions & 136 deletions react-ui/src/pages/analyzeVotes/CompareVotes.jsx

This file was deleted.

Loading

0 comments on commit bb97d68

Please sign in to comment.