Skip to content

Commit

Permalink
Fix style colors
Browse files Browse the repository at this point in the history
  • Loading branch information
maximvl committed Dec 15, 2024
1 parent 6639922 commit 0ef3315
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/pages/map/components/action/NumRating.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ function getIconContainerWithColor(value?: number | null) {
}

const color =
value <= 4
value < 4
? Color.red
: value <= 7
: value < 7
? Color.orange
: value > 9
? Color.purple
Expand Down
12 changes: 6 additions & 6 deletions src/pages/map/components/action/TurnModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function TurnModal({ open, onClose, onConfirm, player }: Props) {
})
}

let formattedGameName = gameName?.replace(/\s\(\d{4}\)$/, "").trim()
let formattedGameName = gameName?.replace(/\s\(\d{4}\)$/, '').trim()
const hltbLink = `https://howlongtobeat.com/?q=${formattedGameName}`

useEffect(() => {
Expand Down Expand Up @@ -421,7 +421,7 @@ export default function TurnModal({ open, onClose, onConfirm, player }: Props) {
variant={
gameHours === 'tiny' ? 'contained' : 'outlined'
}
color={gameHours === 'tiny' ? 'secondary' : 'info'}
color={gameHours === 'tiny' ? 'primary' : 'info'}
style={{
width: '230px',
height: '44px',
Expand All @@ -442,7 +442,7 @@ export default function TurnModal({ open, onClose, onConfirm, player }: Props) {
<Button
onClick={() => handleGameHoursChange('short')}
variant={gameHours === 'short' ? 'contained' : 'outlined'}
color={gameHours === 'short' ? 'secondary' : 'info'}
color={gameHours === 'short' ? 'primary' : 'info'}
style={{
width: '230px',
height: '44px',
Expand Down Expand Up @@ -471,7 +471,7 @@ export default function TurnModal({ open, onClose, onConfirm, player }: Props) {
variant={
gameHours === 'medium' ? 'contained' : 'outlined'
}
color={gameHours === 'medium' ? 'secondary' : 'info'}
color={gameHours === 'medium' ? 'primary' : 'info'}
style={{
// marginLeft: 20,
width: '230px',
Expand All @@ -492,7 +492,7 @@ export default function TurnModal({ open, onClose, onConfirm, player }: Props) {
<Button
onClick={() => handleGameHoursChange('long')}
variant={gameHours === 'long' ? 'contained' : 'outlined'}
color={gameHours === 'long' ? 'secondary' : 'info'}
color={gameHours === 'long' ? 'primary' : 'info'}
style={{
marginLeft: 20,
width: '230px',
Expand Down Expand Up @@ -566,7 +566,7 @@ export default function TurnModal({ open, onClose, onConfirm, player }: Props) {
fullWidth
onClick={handleConfirmTurn}
disabled={!canThrowDice}
color="secondary"
// color="primary"
variant="contained"
sx={{ fontSize: '16px', fontWeight: 700 }}
>
Expand Down

0 comments on commit 0ef3315

Please sign in to comment.