-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding avatars & per sport league lists (#26)
- Loading branch information
1 parent
902d72d
commit 6883f27
Showing
19 changed files
with
209 additions
and
135 deletions.
There are no files selected for viewing
Empty file.
Empty file.
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,23 @@ | ||
import React from "react"; | ||
import { League, Player, User } from "@sleeperhq/mini-core/declarations/types/shared/graphql.d"; | ||
export interface AvatarProps { | ||
user: User; | ||
width?: number; | ||
} | ||
export declare const Avatar: React.MemoExoticComponent<(props: AvatarProps) => JSX.Element>; | ||
export interface AvatarPlayerProps { | ||
player: Player; | ||
width?: number; | ||
} | ||
export declare const AvatarPlayer: React.MemoExoticComponent<(props: AvatarPlayerProps) => JSX.Element>; | ||
export interface AvatarTeamProps { | ||
team: string; | ||
sport: string; | ||
width?: number; | ||
} | ||
export declare const AvatarTeam: React.MemoExoticComponent<(props: AvatarTeamProps) => JSX.Element>; | ||
export interface AvatarLeagueProps { | ||
league: League; | ||
width?: number; | ||
} | ||
export declare const AvatarLeague: React.MemoExoticComponent<(props: AvatarLeagueProps) => JSX.Element>; |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export * from './types'; | ||
export * from './sleeper_message'; | ||
declare const _default: any; | ||
/// <reference types="react" /> | ||
declare const _default: (props: any) => JSX.Element; | ||
export default _default; |
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { AppIconSwitch } from '../types/components/ui_2/app_icon_switch'; | ||
export type { SwitchOption, Props as SwitchProps } from '../types/components/ui_2/app_icon_switch'; | ||
import { AppIconSwitch } from '@sleeperhq/mini-core/declarations/types/components/app_icon_switch.d'; | ||
export type { SwitchOption, Props as SwitchProps } from '@sleeperhq/mini-core/declarations/types/components/app_icon_switch.d'; | ||
export default AppIconSwitch; |
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,24 @@ | ||
import React from 'react'; | ||
import { StyleProp, ViewStyle } from 'react-native'; | ||
export type SwitchOption = { | ||
colorToggleActive: string; | ||
colorIconActive: string; | ||
colorIconInactive?: string; | ||
iconStyle?: any; | ||
icon: any; | ||
iconInactive?: any; | ||
text?: string; | ||
hideIconInactive?: boolean; | ||
}; | ||
export type Props = { | ||
options: [SwitchOption, SwitchOption]; | ||
value?: number; | ||
onChange?: (value: number) => void; | ||
height?: number; | ||
width?: number; | ||
containerStyle?: StyleProp<ViewStyle>; | ||
toggleStyle?: StyleProp<ViewStyle>; | ||
aspectRatio?: number; | ||
confirmationFunction?: (nextSelection: 'on' | 'off', continueAction: () => void) => void; | ||
}; | ||
export declare const AppIconSwitch: React.MemoExoticComponent<({ height, options, value, width, onChange, containerStyle, toggleStyle, aspectRatio, confirmationFunction }: Props) => JSX.Element>; |
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,3 @@ | ||
export default Jersey; | ||
declare const Jersey: React.NamedExoticComponent<object>; | ||
import React from 'react'; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import type { League, Roster, User, MatchupLeg, LeagueTransaction, Draft, DraftPick, RosterDraftPick, Player, Topic } from '@sleeperhq/mini-core/declarations/types/shared/graphql.d'; | ||
export type LeagueId = string; | ||
export type RosterId = string; | ||
export type UserId = string; | ||
export type MatchupWeek = number; | ||
export type MatchId = string; | ||
export type TransactionId = string; | ||
export type SportType = string; | ||
export type DraftId = string; | ||
export type PlayerId = string; | ||
export type TopicId = 'podcasts' | 'videos'; | ||
export type { Topic }; | ||
export type BracketFrom = { | ||
w?: RosterId; | ||
l?: RosterId; | ||
}; | ||
export type Bracket = { | ||
round: number; | ||
matchId: MatchId; | ||
t1: RosterId; | ||
t2: RosterId; | ||
w: RosterId; | ||
l: RosterId; | ||
t1_from: BracketFrom; | ||
t2_from: BracketFrom; | ||
}; | ||
export type BracketSet = { | ||
bracket: Bracket[]; | ||
loserBracket: Bracket[]; | ||
}; | ||
export type SportInfo = { | ||
season_type: string; | ||
season: string; | ||
week?: number; | ||
display_week?: number; | ||
leg?: number; | ||
league_season?: string; | ||
league_create_season?: string; | ||
previous_season?: string; | ||
season_start_date?: string; | ||
season_end_date?: string; | ||
}; | ||
export type LeaguesMap = Record<LeagueId, League>; | ||
export type RostersMap = Record<RosterId, Roster>; | ||
export type RostersInLeagueMap = Record<LeagueId, RostersMap>; | ||
export type UserMap = Record<UserId, User>; | ||
export type MathchupWeekMap = Record<MatchupWeek, MatchupLeg>; | ||
export type MatchupsInLeagueMap = Record<LeagueId, MathchupWeekMap>; | ||
export type UsersInLeagueMap = Record<LeagueId, UserMap>; | ||
export type PlayoffsInLeagueMap = Record<LeagueId, BracketSet>; | ||
export type TransactionsInLeagueMap = Record<LeagueId, TransactionId[]>; | ||
export type TransactionsMap = Record<TransactionId, LeagueTransaction>; | ||
export type SportInfoMap = Record<SportType, SportInfo>; | ||
export type DraftsInLeagueMap = Record<LeagueId, Draft[]>; | ||
export type DraftPickTradesInLeagueMap = Record<LeagueId, RosterDraftPick[]>; | ||
export type DraftPicksInDraftMap = Record<DraftId, DraftPick[]>; | ||
export type PlayersMap = Record<PlayerId, Player>; | ||
export type PlayersInSportMap = Record<SportType, PlayersMap>; | ||
export type Notification = { | ||
title?: string | undefined; | ||
body?: string | undefined; | ||
timestamp?: number; | ||
}; | ||
export declare const EventHandlerResult: { | ||
readonly CONSUMED: "CONSUMED"; | ||
readonly PROPAGATE: "PROPAGATE"; | ||
}; | ||
export type EventHandlerResultType = typeof EventHandlerResult[keyof typeof EventHandlerResult]; | ||
export type Events = { | ||
onBackButtonPressed?: () => EventHandlerResultType; | ||
}; |
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
Oops, something went wrong.