Skip to content

Commit

Permalink
Renamed UserSelector navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
rissois committed Sep 30, 2024
1 parent 429741e commit 8b754db
Showing 1 changed file with 5 additions and 5 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 @@ -38,7 +38,7 @@ const useStyles = makeStyles({
});

function UserSelector({
user, noVotes, setUser, usernames, title, arrows,
user, noVotes, setUser, usernames, title, navigationArrows,
}) {
const classes = useStyles();

Expand Down Expand Up @@ -69,7 +69,7 @@ function UserSelector({
))}
</Select>
<Typography style={{ marginLeft: 10 }}>
{` or use ${arrows} arrows`}
{` or use ${navigationArrows} arrows`}
</Typography>
</Box>
);
Expand Down Expand Up @@ -228,7 +228,7 @@ function AnalyzeVotes() {
user={user1}
setUser={setUser1}
usernames={usernames}
arrows="left-right"
navigationArrows="left-right"
/>

<Box className={classes.sideBySide}>
Expand Down Expand Up @@ -269,7 +269,7 @@ function AnalyzeVotes() {
user={user2}
setUser={setUser2}
usernames={usernames}
arrows="up-down"
navigationArrows="up-down"
/>
<Box className={classes.sideBySide}>
<Box>
Expand Down Expand Up @@ -314,7 +314,7 @@ function AnalyzeVotes() {
export default AnalyzeVotes;

UserSelector.propTypes = {
arrows: PropTypes.string.isRequired,
navigationArrows: PropTypes.ofOne(['left-right', 'up-down']).isRequired,
noVotes: PropTypes.bool.isRequired,
setUser: PropTypes.func.isRequired,
title: PropTypes.string.isRequired,
Expand Down

0 comments on commit 8b754db

Please sign in to comment.