Skip to content

Commit

Permalink
move ChatFeedBox at the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
swiiny committed Apr 16, 2023
1 parent 438be51 commit 7333ed9
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file added assets/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion components/chat/ChatFeed/ChatFeed.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChatFeedBox } from '@components/chat/ChatFeedBox/ChatFeedBox';
import useMessagesQuery from '@hooks/chat/useMessagesQuery';
import { ChatFeedBox } from 'ChatFeedBox/ChatFeedBox';
import { FC, useEffect } from 'react';
import { StyledChatFeed } from './ChatFeed.styles';
import { IChatFeed } from './ChatFeed.type';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,18 @@ export const StyledChatFeedBox = styled.li`
max-width: 60%;
${addTransition()}
overflow: hidden;
& > div {
&.is-left {
width: 100%;
}
& > p {
width: 100%;
overflow-wrap: break-word;
hyphens: none;
}
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ChatFeedBox: FC<IChatFeedBox> = ({ id, user, value, timestamp }) => {
background={isUser ? theme.colors.darkGradient : theme.colors.blueGradient}
>
{/* @ts-ignore */}
<Text type={ETextType.p} size={ESize.l} style={{ lineBreak: 'anywhere' }}>
<Text type={ETextType.p} size={ESize.l}>
{formattedValue()}
</Text>
</GradientContainer>
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion hooks/1inch/useAllowance/useAllowance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ function useAllowance(
);
return response.data;
},
enabled: !!tokenAddress && !!amount && parseInt(allowance) < parseInt(amount)
enabled: !!tokenAddress && !!amount && parseInt(allowance) < parseInt(amount),
staleTime: 0
});

const isNative = tokenAddress?.toLowerCase() === '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee';
Expand Down

0 comments on commit 7333ed9

Please sign in to comment.