-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0089ab
commit 651bea9
Showing
10 changed files
with
67 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
apps/fantalytic-mobile/src/app/fantasy-football/player-detail/player-detail.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
|
||
.active { | ||
color: rgb(66,140,255); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
apps/fantalytic-mobile/src/app/ngrx/actions/shared.actions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { createAction } from '@ngrx/store'; | ||
|
||
export const setHasBackButton = createAction( | ||
'[Shared] Set Has Back Button', | ||
(hasBackButton: boolean) => ({hasBackButton}) | ||
); |
18 changes: 18 additions & 0 deletions
18
apps/fantalytic-mobile/src/app/ngrx/reducers/shared.reducer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { createReducer, on } from '@ngrx/store'; | ||
import { setHasBackButton } from '../actions/shared.actions'; | ||
|
||
export interface SharedState { | ||
hasBackButton: boolean; | ||
} | ||
|
||
export const initialState: SharedState = { | ||
hasBackButton: false | ||
}; | ||
|
||
export const sharedReducer = createReducer( | ||
initialState, | ||
on( | ||
setHasBackButton, | ||
(state, {hasBackButton}) => ({...state, hasBackButton}) | ||
) | ||
); |
9 changes: 9 additions & 0 deletions
9
apps/fantalytic-mobile/src/app/ngrx/selectors/shared.selectors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { createFeatureSelector, createSelector } from '@ngrx/store'; | ||
import { SharedState } from '../reducers/shared.reducer'; | ||
|
||
const selectSharedState = createFeatureSelector<SharedState>('shared'); | ||
|
||
export const selectHasBackButton = createSelector( | ||
selectSharedState, | ||
state => state.hasBackButton | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters