Skip to content

Commit

Permalink
releasef fixing tabs on desktop view
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Dec 19, 2023
1 parent 713ebee commit bd547de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/containers/Profile/Armory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface IProps {
}

const useBreakpoint = createBreakpoint({ md: 768, lg: 1024 });
const Armory = ({ player, loading, updatePlayer }: IProps, isMobile: boolean) => {
const Armory = ({ player, loading, updatePlayer }: IProps) => {
const breakpoint = useBreakpoint();

return (
Expand All @@ -40,7 +40,7 @@ const Armory = ({ player, loading, updatePlayer }: IProps, isMobile: boolean) =>
<PvpBrackets player={player} />
<ActivityDiagram player={player} />
<AltsTable player={player} />
{player.brackets.find((bracket) => bracket.gaming_history.history.length > 0) && (<GamingHistory player={player} isMobile={isMobile} />)}
{player.brackets.find((bracket) => bracket.gaming_history.history.length > 0) && (<GamingHistory player={player} isMobile={breakpoint === 'md'} />)}
{breakpoint === 'md' && <TitlesHistory player={player} />}
</div>
</div>
Expand Down

0 comments on commit bd547de

Please sign in to comment.