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 './currencies'
export * from './dashes'
export * from './tabsGroup'

@ -1,17 +1,20 @@
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 = {
preproduction: 'https://api-test.instat.tv',
production: 'https://api.instat.tv',
staging: 'https://api-staging.instat.tv',
preproduction: {
api: 'https://api-test.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 API_ROOT = APIS[ENV]
export const AUTH_SERVICE = APIS[ENV].auth
export const API_ROOT = APIS[ENV].api
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 {
WATCH,
EVENTS,
LANGUAGES,
}

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

Loading…
Cancel
Save