diff --git a/Makefile b/Makefile index f8420178..5820759c 100644 --- a/Makefile +++ b/Makefile @@ -124,7 +124,7 @@ stage: build-stage rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/wwwroot/ a-stage: build-a - rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/a-wwwroot/ + rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@10.0.3.8:/usr/local/www/ott-staging/a-wwwroot/ b-stage: build-b rsync -zavP --delete-before build/ -e 'ssh -p 666' ott-staging@staging.instat.tv:/usr/local/www/ott-staging/b-wwwroot/ diff --git a/src/features/ProfileHeader/index.tsx b/src/features/ProfileHeader/index.tsx index 575a8fc6..4ec20da9 100644 --- a/src/features/ProfileHeader/index.tsx +++ b/src/features/ProfileHeader/index.tsx @@ -9,6 +9,7 @@ import { } from 'config' import { client } from 'config/clients' +import { isMobileDevice } from 'config/userAgent' import { Menu } from 'features/Menu' import { Search } from 'features/Search' @@ -76,11 +77,12 @@ export const ProfileHeader = ({ + {!isMobileDevice ? : null} - + {isMobileDevice ? : null} ) } diff --git a/src/stores/index.ts b/src/stores/index.ts deleted file mode 100644 index b46a1625..00000000 --- a/src/stores/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { createContext, useContext } from 'react' -import { MatchesStore } from './matchesStore' - -export const RootStoreContext = createContext({ - matchesStore: new MatchesStore(), -}) - -export const useStores = () => useContext(RootStoreContext) diff --git a/src/stores/matchesStore.tsx b/src/stores/matchesStore.tsx deleted file mode 100644 index bbabe031..00000000 --- a/src/stores/matchesStore.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { makeAutoObservable, observable } from 'mobx' - -import type { Match } from 'features/Matches/hooks' - -export class MatchesStore { - matches: Array = [] - - constructor() { - makeAutoObservable(this, { - matches: observable, - }) - } - - getMatches() { - return this.matches - } - - filterMatches(matches: Array, sport: number) { - this.matches = matches.filter((match) => match.sportType === sport) - } -}