Ignore:
Timestamp:
06/25/22 11:30:19 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
b13f93b
Parents:
9bd09b0
Message:

Finished Roulette

File:
1 edited

Legend:

Unmodified
Added
Removed
  • components/Alert.jsx

    r9bd09b0 race7865  
    1010import { setBlackjackGame } from '../redux/reducers/playerSlice'
    1111
    12 const Alert = () => {
     12const Alert = ({ onTop = false }) => {
    1313    const playerState = useSelector(state => state.player)
    1414    const styleState = useSelector(state => state.style)
     
    7575
    7676    return (
    77         <div className="alert" style={{display: display}}>
     77        <div className="alert" style={{display: display, top: `${onTop ? '35vh' : '50vh'}`}}>
    7878            <h1>{styleState.style.alert.title}</h1>
    7979            <h3>{styleState.style.alert.subtitle}</h3>
Note: See TracChangeset for help on using the changeset viewer.