diff --git a/src/components/BoardComponent.tsx b/src/components/BoardComponent.tsx index ecf12bd..ab6b44c 100644 --- a/src/components/BoardComponent.tsx +++ b/src/components/BoardComponent.tsx @@ -24,6 +24,10 @@ export interface JsonStateInterface { handNumber: number; playerScore: number; houseScore: number; + btnDealerClass: string; + btnHitClass: string; + btnStandClass: string; + message: string; } export class BoardComponent extends React.Component { @@ -47,10 +51,10 @@ export class BoardComponent extends React.Component { handNumber: 0, playerScore: 0, houseScore: 0, + btnDealerClass: '', + btnHitClass: 'invisible', + btnStandClass: 'invisible', + message: 'Welcome to vmolero\'s BlackJack Game. Press \'Deal!\' to start playing.' }; } @@ -37,6 +41,10 @@ class SimpleBlackJack extends React.Component { handNumber: state.handNumber, playerScore: state.playerScore, houseScore: state.houseScore, + btnDealerClass: state.btnDealerClass, + btnHitClass: state.btnHitClass, + btnStandClass: state.btnStandClass, + message: state.message }; this.setItem(this.KEY, JSON.stringify(jsonSate)); }