fix(2055): removed languages tab

keep-around/d717ed6b856cad0a5506fa3ef24e0251c055bfcf
Макситалиев Мирлан 4 years ago
parent d8a080a802
commit d717ed6b85
  1. 33396
      package-lock.json
  2. 1
      src/config/index.tsx
  3. 25
      src/config/routes.tsx
  4. 1
      src/config/tabsGroup.tsx
  5. 1
      src/features/MatchSidePlaylists/config.tsx
  6. 14
      src/features/MatchSidePlaylists/index.tsx

33396
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -8,4 +8,3 @@ export * from './history'
export * from './devices' export * from './devices'
export * from './currencies' export * from './currencies'
export * from './dashes' export * from './dashes'
export * from './tabsGroup'

@ -1,17 +1,20 @@
import { ENV } from './env' import { ENV } from './env'
const AUTH_SERVICE_URLS = {
preproduction: 'https://test-auth.instat.tv',
production: 'https://auth.instat.tv',
staging: 'https://test-auth.instat.tv',
}
const APIS = { const APIS = {
preproduction: 'https://api-test.instat.tv', preproduction: {
production: 'https://api.instat.tv', api: 'https://api-test.instat.tv',
staging: 'https://api-staging.instat.tv', auth: 'https://auth.instat.tv',
},
production: {
api: 'https://api.instat.tv',
auth: 'https://auth.instat.tv',
},
staging: {
api: 'https://api-staging.instat.tv',
auth: 'https://test-auth.instat.tv',
},
} }
export const AUTH_SERVICE = AUTH_SERVICE_URLS[ENV] export const AUTH_SERVICE = APIS[ENV].auth
export const API_ROOT = APIS[ENV] export const API_ROOT = APIS[ENV].api
export const DATA_URL = `${API_ROOT}/data` export const DATA_URL = `${API_ROOT}/data`

@ -1 +0,0 @@
export const MATCH_SIDE_PLAYLIST_WIDTH = [33, 33, 33]

@ -1,5 +1,4 @@
export enum Tabs { export enum Tabs {
WATCH, WATCH,
EVENTS, EVENTS,
LANGUAGES,
} }

@ -1,7 +1,6 @@
import type { Events, MatchInfo } from 'requests' import type { Events, MatchInfo } from 'requests'
import type { PlaylistOption, Playlists } from 'features/MatchPage/types' import type { PlaylistOption, Playlists } from 'features/MatchPage/types'
import { MATCH_SIDE_PLAYLIST_WIDTH } from 'config'
import { Tab, TabsGroup } from 'features/Common' import { Tab, TabsGroup } from 'features/Common'
import { T9n } from 'features/T9n' import { T9n } from 'features/T9n'
@ -18,7 +17,6 @@ import {
const tabPanes = { const tabPanes = {
[Tabs.WATCH]: TabWatch, [Tabs.WATCH]: TabWatch,
[Tabs.EVENTS]: TabEvents, [Tabs.EVENTS]: TabEvents,
[Tabs.LANGUAGES]: () => null,
} }
type Props = { type Props = {
@ -46,29 +44,19 @@ export const MatchSidePlaylists = ({
return ( return (
<Wrapper> <Wrapper>
<TabsWrapper> <TabsWrapper>
<TabsGroup buttons={3}> <TabsGroup buttons={2}>
<Tab <Tab
width={MATCH_SIDE_PLAYLIST_WIDTH[0]}
selected={selectedTab === Tabs.WATCH} selected={selectedTab === Tabs.WATCH}
onClick={() => onTabClick(Tabs.WATCH)} onClick={() => onTabClick(Tabs.WATCH)}
> >
<T9n t='watch' /> <T9n t='watch' />
</Tab> </Tab>
<Tab <Tab
width={MATCH_SIDE_PLAYLIST_WIDTH[1]}
selected={selectedTab === Tabs.EVENTS} selected={selectedTab === Tabs.EVENTS}
onClick={() => onTabClick(Tabs.EVENTS)} onClick={() => onTabClick(Tabs.EVENTS)}
> >
<T9n t='actions' /> <T9n t='actions' />
</Tab> </Tab>
<Tab
disabled
width={MATCH_SIDE_PLAYLIST_WIDTH[2]}
selected={selectedTab === Tabs.LANGUAGES}
onClick={() => onTabClick(Tabs.LANGUAGES)}
>
<T9n t='languages' />
</Tab>
</TabsGroup> </TabsGroup>
</TabsWrapper> </TabsWrapper>
<Container> <Container>

Loading…
Cancel
Save