Changeset ace7865 for components/Alert.jsx
- Timestamp:
- 06/25/22 11:30:19 (2 years ago)
- Branches:
- main
- Children:
- b13f93b
- Parents:
- 9bd09b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
components/Alert.jsx
r9bd09b0 race7865 10 10 import { setBlackjackGame } from '../redux/reducers/playerSlice' 11 11 12 const Alert = ( ) => {12 const Alert = ({ onTop = false }) => { 13 13 const playerState = useSelector(state => state.player) 14 14 const styleState = useSelector(state => state.style) … … 75 75 76 76 return ( 77 <div className="alert" style={{display: display }}>77 <div className="alert" style={{display: display, top: `${onTop ? '35vh' : '50vh'}`}}> 78 78 <h1>{styleState.style.alert.title}</h1> 79 79 <h3>{styleState.style.alert.subtitle}</h3>
Note:
See TracChangeset
for help on using the changeset viewer.