Skip to content

Commit

Permalink
Merge pull request #496 from dappforce/fix/ui-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel authored Dec 15, 2023
2 parents 6092abc + 5be02fb commit f92d916
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 9 additions & 2 deletions src/components/ProfilePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,17 @@ const ProfilePreview = ({
const showPolkadotAddress = !!isMyProxyAddress

return (
<div {...props} className={cx('flex items-center gap-4', className)}>
<div
{...props}
className={cx('flex items-center gap-3 md:gap-4', className)}
>
<AddressAvatar
address={address}
className={cx('h-20 w-20', avatarClassName)}
className={cx(
// if avatarClassName is provided, use it, otherwise use default size
avatarClassName ? 'h-20 w-20' : 'h-16 w-16 md:h-20 md:w-20',
avatarClassName
)}
forceProfileSource={forceProfileSource}
/>
<div className={cx('flex flex-col gap-1', addressesContainerClassName)}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/auth/LoginModal/LoginModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function LoginModal({
},
'account-created': {
title: '🎉 Account created',
desc: 'We have created an anonymous account for you. You can now use Grill.chat!',
desc: 'We have created an account linked to your X for you. You can now use Grill.chat!',
finalizeTemporaryAccount: true,
},
'next-actions': {
Expand Down
4 changes: 1 addition & 3 deletions src/constants/hubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ const COMMUNITY_CHAT_HUB_ID: string[] = [PRIMARY_COMMUNITY_HUB_ID, '1025']
export const isCommunityHubId = (hubId: string | undefined) =>
COMMUNITY_CHAT_HUB_ID.includes(hubId ?? '')

export const PINNED_HUB_IDS = [COMMUNITY_CHAT_HUB_ID, '1031'].filter(
Boolean
) as string[]
export const PINNED_HUB_IDS = [...COMMUNITY_CHAT_HUB_ID, '1031'].filter(Boolean)

const HUB_ID_WITHOUT_JOIN_BUTTON = [
'1023',
Expand Down

0 comments on commit f92d916

Please sign in to comment.