Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
reallybeard committed Jan 9, 2024
1 parent 0a68bc7 commit 86b3bd1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/AssetSelectModal/AssetRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const AssetRow: FC<AssetRowProps> = memo(({ onClick, ...asset }) => {
onClick(asset)
}, [asset, onClick])

const handleImgLoad = useCallback(() => {
const handleImageLoad = useCallback(() => {
setImgLoaded(true)
}, [])

Expand All @@ -37,7 +37,7 @@ export const AssetRow: FC<AssetRowProps> = memo(({ onClick, ...asset }) => {
>
<Flex gap={4} alignItems='center'>
<SkeletonCircle isLoaded={imgLoaded}>
<Avatar src={icon} size='sm' onLoad={handleImgLoad} />
<Avatar src={icon} size='sm' onLoad={handleImageLoad} />
</SkeletonCircle>
<Box textAlign='left'>
<Text
Expand Down
4 changes: 2 additions & 2 deletions src/components/AssetSelectModal/AssetSelectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const AssetSelectModal: React.FC<AssetSelectModalProps> = ({ isOpen, onCl
setActiveChain(chainId)
}, [])

const handleAllChain = useCallback(() => {
const handleAllClick = useCallback(() => {
setActiveChain('All')
}, [])

Expand Down Expand Up @@ -143,7 +143,7 @@ export const AssetSelectModal: React.FC<AssetSelectModalProps> = ({ isOpen, onCl
variant='outline'
fontSize='sm'
px={2}
onClick={handleAllChain}
onClick={handleAllClick}
>
All
</Button>
Expand Down
6 changes: 5 additions & 1 deletion src/components/Chatwoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ export const ChatwootButton: React.FC = () => {
if (window.$chatwoot) window.$chatwoot.toggle()
}, [])

return chatWootEnabled ? <Button onClick={handleChatWoot}>Get support</Button> : null
return chatWootEnabled ? (
<Button position='absolute' right='1rem' bottom='1rem' onClick={handleChatWoot}>
Get support
</Button>
) : null
}

0 comments on commit 86b3bd1

Please sign in to comment.