Skip to content

Commit

Permalink
fix: QA fixes (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
corlard3y authored Aug 17, 2023
1 parent 39c7fe2 commit 5a577c6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/examples/sdk-frontend-react/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export function App() {
<Web3Context.Provider value={{ account, active, library, chainId }}>
<SocketContext.Provider value={socketData}>
<AccountContext.Provider value={{ pgpPrivateKey, setSpaceId }}>
<ChatUIProvider account={account!} pgpPrivateKey={pgpPrivateKey} env={env} theme={lightChatTheme}>
<ChatUIProvider account={account!} pgpPrivateKey={pgpPrivateKey} env={env} theme={darkChatTheme}>
<SpacesUIProvider spaceUI={spaceUI} theme={customDarkTheme}>
<Routes>
<Route
Expand Down
19 changes: 13 additions & 6 deletions packages/uiweb/src/lib/components/chat/ChatProfile/ChatProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ const Options = ({ options, setOptions, isGroup, chatInfo, groupInfo, setGroupIn
<DropDownItem cursor='pointer' onClick={ShowModal}>
<Image src={InfoIcon} height="21px" maxHeight="21px" width={'auto'} cursor="pointer" />

Group Info</DropDownItem>
<TextItem>
Group Info
</TextItem>
</DropDownItem>
</DropDownBar>)}

{modal &&
Expand Down Expand Up @@ -196,12 +199,11 @@ const DummyImage = styled.div`
const DropDownBar = styled.div`
position: absolute;
top: 30px;
left: -120px;
left: -130px;
display: block;
min-width: 110px;
min-width: 140px;
color: rgb(101, 119, 149);
border: 1px solid rgb(74, 79, 103);
border: ${(props) => props.theme.dropdownBorderColor};
border: ${(props) => `1px solid ${props.theme.defaultBorder}`};
background: ${(props) => props.theme.bgColorPrimary};
z-index: 10;
border-radius: 16px;
Expand All @@ -215,11 +217,16 @@ const DropDownItem = styled(Span)`
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 16px;
border-radius: 16px;
z-index: 3000000;
width: 100%;
`;

const TextItem = styled(Span)`
white-space: nowrap;
overflow: hidden;
`;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ const PublicEncrypted = styled.div`
width: 100%;
gap: 19px;
align-items: center;
border: ${(props) => props.theme.dropdownBorderColor};
border: ${(props) => `1px solid ${props.theme.defaultBorder}`};
border-radius: 16px;
padding: 16px;
box-sizing: border-box;
Expand All @@ -570,7 +570,7 @@ const AdminItem = styled.div`

const AddWalletContainer = styled.div`
margin-top: 20px;
border: ${(props) => props.theme.dropdownBorderColor};
border: ${(props) => `1px solid ${props.theme.defaultBorder}`};
border-radius: 16px;
width: 100%;
padding: 20px 16px;
Expand Down Expand Up @@ -601,7 +601,7 @@ const GroupPendingMembers = styled.div`
const PendingRequestWrapper = styled.div`
width: 100%;
margin-top: 20px;
border: ${(props) => props.theme.dropdownBorderColor};
border: ${(props) => `1px solid ${props.theme.defaultBorder}`};
border-radius: 16px;
padding: 0px 0px;
box-sizing: border-box;
Expand Down
3 changes: 3 additions & 0 deletions packages/uiweb/src/lib/components/chat/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export interface IChatTheme {
modalIconColor?: string;
pendingCardBackground?: string,
modalHeadingColor?: string;
defaultBorder?: string;
}

export const lightChatTheme: IChatTheme = {
Expand Down Expand Up @@ -83,6 +84,7 @@ export const lightChatTheme: IChatTheme = {
modalIconColor: '#657795',
pendingCardBackground: 'rgba(173, 176, 190, 0.12)',
modalHeadingColor: '#333333',
defaultBorder: '#E5E8F6',
};

export const darkChatTheme: IChatTheme = {
Expand Down Expand Up @@ -125,5 +127,6 @@ export const darkChatTheme: IChatTheme = {
modalIconColor: '#787E99',
pendingCardBackground: 'rgba(173, 176, 190, 0.08)',
modalHeadingColor: '#B6BCD6',
defaultBorder: '#4A4F67'
};

0 comments on commit 5a577c6

Please sign in to comment.