File tree Expand file tree Collapse file tree 4 files changed +16
-11
lines changed
resources/js/game/components/actions/partials Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 11import React , { ReactNode } from 'react' ;
2+
23import MonsterSection from '../monster-section/monster-section' ;
34import { useScrollIconMenu } from './hooks/use-scroll-icon-menu' ;
45import NavigationActionsComponent from './navigation-actions' ;
56import ActionsProps from './types/actions-props' ;
6- import Card from 'ui/cards/card' ;
77import FightLog from '../monster-section/fight-log' ;
88
9+ import Card from 'ui/cards/card' ;
10+
911const Actions = ( props : ActionsProps ) : ReactNode => {
1012 const { scrollY, isMobile } = useScrollIconMenu ( ) ;
1113
1214 return (
1315 < Card >
14- < div className = "
16+ < div
17+ className = "
1518 grid
1619 grid-cols-1
1720 lg:grid-cols-[auto_minmax(0,64rem)]
1821 xl:grid-cols-[auto_minmax(0,64rem)_1fr]
1922 justify-items-center
2023 gap-x-8
21- " >
24+ "
25+ >
2226 < div className = "justify-self-center lg:justify-self-start" >
2327 < NavigationActionsComponent scrollY = { scrollY } isMobile = { isMobile } />
2428 </ div >
2529 < div className = "justify-self-center w-full max-w-5xl" >
26- < div className = ' xl:ml-[450px]' >
27- < MonsterSection show_monster_stats = { props . showMonsterStats } />
30+ < div className = " xl:ml-[450px]" >
31+ < MonsterSection show_monster_stats = { props . showMonsterStats } />
2832 </ div >
2933 </ div >
3034 < div className = "hidden xl:block col-start-3 justify-self-center w-[480px]" >
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+
3+ import FightLogProps from './types/fight-log-props' ;
24import AttackMessages from '../../components/fight-section/attack-messages' ;
35import AttackMessageDefinition from '../../components/fight-section/deffinitions/attack-message-definition' ;
46import { AttackMessageType } from '../../components/fight-section/enums/attack-message-type' ;
5- import FightLogProps from './types/fight-log-props' ;
67
7- const FightLog = ( { close_action} : FightLogProps ) => {
8+ const FightLog = ( { close_action } : FightLogProps ) => {
89 const messages : AttackMessageDefinition [ ] = [
910 {
1011 message : 'You Attack for 150,000 Damage!' ,
@@ -40,6 +41,6 @@ const FightLog = ({close_action}: FightLogProps) => {
4041 </ div >
4142 </ div >
4243 ) ;
43- }
44+ } ;
4445
45- export default FightLog
46+ export default FightLog ;
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ const MonsterSection = (props: MonsterSectionProps): ReactNode => {
9898 on_click = { ( ) => { } }
9999 />
100100 </ AttackButtonsContainer >
101- < div className = ' block xl:hidden' >
101+ < div className = " block xl:hidden" >
102102 < Separator additional_css = "w-full lg:w-1/5 mx-auto my-6" />
103103 < AttackMessages messages = { messages } />
104104 </ div >
Original file line number Diff line number Diff line change 11export default interface FightLogProps {
22 close_action : ( ) => void ;
3- }
3+ }
You can’t perform that action at this time.
0 commit comments