Skip to content

Commit fd01b85

Browse files
committed
Sonacloud fixed issue and remove unnecessary props
1 parent 4704f39 commit fd01b85

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

src/components/Claim/InfoTooltip.tsx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ type InfoTooltipProps = {
99
useCustomStyle?: boolean;
1010
};
1111

12+
const DefaultTooltip = ({ className, ...props }: TooltipProps) => {
13+
return (
14+
<Tooltip {...props} arrow
15+
title={
16+
<span style={{ fontSize: 15 }}>
17+
{props.title}
18+
</span>
19+
}
20+
>
21+
{props.children}
22+
</Tooltip>
23+
);
24+
};
25+
1226
const InfoTooltip: React.FC<InfoTooltipProps> = ({
1327
placement = "top",
1428
content,
@@ -29,19 +43,6 @@ const InfoTooltip: React.FC<InfoTooltipProps> = ({
2943
},
3044
}));
3145

32-
const DefaultTooltip = ({ className, ...props }: TooltipProps) => {
33-
return (
34-
<Tooltip {...props} arrow
35-
title={
36-
<span style={{ fontSize: 15 }}>
37-
{props.title}
38-
</span>
39-
}
40-
>
41-
{props.children}
42-
</Tooltip>
43-
);
44-
};
4546

4647
const TooltipComponent = useCustomStyle ? CustomTooltip : DefaultTooltip;
4748

src/components/Personality/PersonalityMinimalCard.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ const PersonalityMinimalCard = ({ personality, avatarSize = 117 }) => {
1616
<PersonalityCardAvatar
1717
hoistAvatar={false}
1818
personality={personality}
19-
header={true}
2019
componentStyle={{
2120
avatarSize: avatarSize,
2221
avatarSpan: 4,
2322
hiddenIconSize: 16,
2423
}}
25-
offset={[-18, 18]}
2624
/>
2725
</Grid>
2826
<Grid item className="personality">

0 commit comments

Comments
 (0)