Skip to content

Commit

Permalink
Replace broken X(twitter) user thumbnail X icon
Browse files Browse the repository at this point in the history
  • Loading branch information
greatsamist committed Aug 6, 2024
1 parent b9acf1e commit ae766ec
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 11 deletions.
22 changes: 14 additions & 8 deletions packages/app/app/studio/[organization]/destinations/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Destinations = async ({
case 'youtube':
return <SiYoutube color="#FF0000" className={className} />;
case 'twitter':
return <SiX className={className} />;
return null;
default:
return <LuRadio color="#000" className={className} />;
}
Expand Down Expand Up @@ -71,13 +71,19 @@ const Destinations = async ({
<TableRow key={_id}>
<TableCell className="flex items-center gap-4">
<div className="relative">
<Image
className="rounded-full"
src={thumbnail!}
width={50}
height={50}
alt={type}
/>
{type === 'twitter' ? (
<div className="bg-black w-[50px] h-[50px] rounded-full">
<SiX color="#fff" className="w-full h-full p-3" />
</div>
) : (
<Image
className="rounded-full"
src={thumbnail!}
width={50}
height={50}
alt={type}
/>
)}
{renderSocialTypeIcon(type)}
</div>

Expand Down
2 changes: 1 addition & 1 deletion packages/app/components/misc/ConnectWalletButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ConnectWalletButton = ({
return (
<Button variant={'primary'} onClick={show} className={className}>
<span className="px-2 md:px-0">
{isConnected ? (ensName ?? truncatedAddress) : btnText}
{isConnected ? ensName ?? truncatedAddress : btnText}
</span>
</Button>
);
Expand Down
9 changes: 8 additions & 1 deletion packages/server/src/routes/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1093,8 +1093,15 @@ const models: TsoaRoute.Models = {
socialId: { dataType: 'string', required: true },
organizationId: { dataType: 'string', required: true },
sessionId: { dataType: 'string', required: true },
token: { dataType: 'string' },
token: {
dataType: 'nestedObjectLiteral',
nestedProperties: {
secret: { dataType: 'string', required: true },
key: { dataType: 'string' },
},
},
type: { dataType: 'string', required: true },
text: { dataType: 'string' },
},
additionalProperties: false,
},
Expand Down
14 changes: 13 additions & 1 deletion packages/server/src/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1934,10 +1934,22 @@
"type": "string"
},
"token": {
"type": "string"
"properties": {
"secret": {
"type": "string"
},
"key": {
"type": "string"
}
},
"required": ["secret"],
"type": "object"
},
"type": {
"type": "string"
},
"text": {
"type": "string"
}
},
"required": ["socialId", "organizationId", "sessionId", "type"],
Expand Down

0 comments on commit ae766ec

Please sign in to comment.