mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
move player type
This commit is contained in:
@@ -12,7 +12,6 @@ import { PlayerFragmentFragment } from 'graphql/autogen/types';
|
||||
import React from 'react';
|
||||
import { getPlayerDescription, getPlayerName } from 'utils/playerHelpers';
|
||||
|
||||
import { FlexContainer } from '../../Container';
|
||||
import { ProfileSection } from '../../ProfileSection';
|
||||
import { PlayerContacts } from '../PlayerContacts';
|
||||
import { PlayerBrightId } from './PlayerBrightId';
|
||||
@@ -81,16 +80,6 @@ export const PlayerHero: React.FC<Props> = ({ player, isOwnProfile }) => {
|
||||
<Box w="100%">
|
||||
<PlayerCollab player={player} />
|
||||
</Box>
|
||||
{player.type?.title && (
|
||||
<FlexContainer align="stretch" fontSize={{ base: 'sm', sm: 'md' }}>
|
||||
<Text color="white" fontWeight="bold" casing="uppercase">
|
||||
{player.type.title}
|
||||
</Text>
|
||||
<Text color="blueLight" style={{ textIndent: 16 }}>
|
||||
{player.type.description}
|
||||
</Text>
|
||||
</FlexContainer>
|
||||
)}
|
||||
</VStack>
|
||||
</ProfileSection>
|
||||
);
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { Wrap } from '@metafam/ds';
|
||||
import { Text } from '@metafam/ds';
|
||||
import { PlayerFragmentFragment } from 'graphql/autogen/types';
|
||||
import React from 'react';
|
||||
|
||||
import { FlexContainer } from '../../Container';
|
||||
import { ProfileSection } from '../../ProfileSection';
|
||||
|
||||
type Props = {
|
||||
@@ -15,10 +16,17 @@ export const PlayerType: React.FC<Props> = ({
|
||||
onRemoveClick,
|
||||
}) => (
|
||||
<ProfileSection
|
||||
title="Color Disposition"
|
||||
title="Player type"
|
||||
onRemoveClick={onRemoveClick}
|
||||
displayEditButton={displayEditButton}
|
||||
>
|
||||
<Wrap />
|
||||
{player.type?.title && (
|
||||
<FlexContainer align="stretch" fontSize={{ base: 'sm', sm: 'md' }}>
|
||||
<Text color="white" fontWeight="bold" casing="uppercase">
|
||||
{player.type.title}
|
||||
</Text>
|
||||
<Text color="blueLight">{player.type.description}</Text>
|
||||
</FlexContainer>
|
||||
)}
|
||||
</ProfileSection>
|
||||
);
|
||||
|
||||
@@ -58,7 +58,7 @@ export const ProfileSection: React.FC<ProfileSectionProps> = ({
|
||||
bg="blueProfileSection"
|
||||
borderBottomRadius="lg"
|
||||
borderTopRadius={!title ? 'lg' : 0}
|
||||
p={6}
|
||||
p={8}
|
||||
boxShadow="md"
|
||||
css={{ backdropFilter: 'blur(8px)' }}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user