Skip to content

Commit f77d836

Browse files
fix: fix styles
Signed-off-by: Yash Sharma <[email protected]>
1 parent b19a411 commit f77d836

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

src/custom/ShareModal/ShareModal.tsx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
} from '../../base';
1414
import { ChainIcon, DeleteIcon, LockIcon, PublicIcon } from '../../icons';
1515
import { useTheme } from '../../theme';
16+
import { BLACK, WHITE } from '../../theme/colors';
1617
import { Modal, ModalBody, ModalButtonPrimary, ModalButtonSecondary, ModalFooter } from '../Modal';
1718
import { UserSearchField } from '../UserSearchField';
1819
import {
@@ -65,6 +66,8 @@ const AccessList: React.FC<AccessListProps> = ({
6566
window.open(url, '_blank', 'noreferrer');
6667
};
6768

69+
const theme = useTheme();
70+
6871
return (
6972
<>
7073
{accessList.length > 0 && (
@@ -99,7 +102,7 @@ const AccessList: React.FC<AccessListProps> = ({
99102
aria-label="delete"
100103
onClick={() => handleDelete(actorData.email)}
101104
>
102-
<DeleteIcon />
105+
<DeleteIcon fill={theme.palette.background.neutral?.default} />
103106
</IconButton>
104107
)}
105108
</ListItemSecondaryAction>
@@ -240,8 +243,6 @@ const ShareModal: React.FC<ShareModalProps> = ({
240243
}
241244
fetchSuggestions={fetchSuggestions}
242245
/>
243-
</ModalBody>
244-
<ModalBody>
245246
<CustomListItemText>
246247
<Typography variant="h6">General Access</Typography>
247248
</CustomListItemText>
@@ -253,13 +254,13 @@ const ShareModal: React.FC<ShareModalProps> = ({
253254
<PublicIcon
254255
width={24}
255256
height={24}
256-
stroke={theme.palette.mode === 'dark' ? '#fff' : 'black'}
257+
stroke={theme.palette.mode === 'dark' ? WHITE : BLACK}
257258
/>
258259
) : (
259260
<LockIcon
260261
width={24}
261262
height={24}
262-
stroke={theme.palette.mode === 'dark' ? '#fff' : 'black'}
263+
stroke={theme.palette.mode === 'dark' ? WHITE : BLACK}
263264
/>
264265
)}
265266
</VisibilityIconWrapper>
@@ -291,15 +292,15 @@ const ShareModal: React.FC<ShareModalProps> = ({
291292
</ModalBody>
292293

293294
<ModalFooter variant="filled">
294-
<ModalButtonSecondary variant="outlined" onClick={handleCopy}>
295+
<ModalButtonSecondary
296+
variant="outlined"
297+
onClick={handleCopy}
298+
style={{ marginRight: '1rem', padding: '7px 16px' }}
299+
>
295300
<IconButtonWrapper>
296-
<ChainIcon
297-
width={24}
298-
height={24}
299-
stroke={theme.palette.mode === 'dark' ? '#fff' : 'black'}
300-
/>
301+
<ChainIcon width={24} height={24} fill={theme.palette.text.constant?.white} />
301302
</IconButtonWrapper>
302-
Copy Link
303+
<Typography>Copy Link</Typography>
303304
</ModalButtonSecondary>
304305
<ModalButtonPrimary
305306
disabled={isShareDisabled()}

src/custom/ShareModal/style.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const IconButtonWrapper = styled(`div`)(() => ({
2323
export const VisibilityIconWrapper = styled(`div`)(({ theme }) => ({
2424
width: '36px',
2525
height: '36px',
26-
background: theme.palette.secondary.tabHover,
26+
background: theme.palette.background.hover,
2727
borderRadius: '20px',
2828
display: 'flex',
2929
justifyContent: 'center',
@@ -35,14 +35,14 @@ export const FormControlWrapper = styled(FormControl)(() => ({
3535
width: '100%'
3636
}));
3737

38-
export const ListWrapper = styled(`div`)(({ theme }) => ({
38+
export const ListWrapper = styled(`div`)(() => ({
3939
maxHeight: '16rem',
40-
overflowY: 'auto',
41-
color: theme.palette.secondary.text
40+
overflowY: 'auto'
4241
}));
4342

4443
export const CustomSelect = styled(Select)(() => ({
4544
width: '6rem',
45+
boxShadow: 'none',
4646
'&:before': {
4747
display: 'none'
4848
},
@@ -52,6 +52,12 @@ export const CustomSelect = styled(Select)(() => ({
5252
fontFamily: 'Qanelas Soft, sans-serif',
5353
'&.MuiTypography-root': {
5454
fontFamily: 'Qanelas Soft, sans-serif'
55+
},
56+
'& .MuiOutlinedInput-notchedOutline': {
57+
border: 'none'
58+
},
59+
'& .MuiSelect-select': {
60+
padding: 0
5561
}
5662
}));
5763

src/custom/UserSearchField/UserSearchField.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,19 @@ const UserSearchField: React.FC<UserSearchFieldProps> = ({
8989
};
9090

9191
const handleInputChange = (_event: React.SyntheticEvent<Element, Event>, value: string) => {
92+
console.log('called handle change');
9293
if (value === '') {
9394
setOptions([]);
9495
setOpen(false);
9596
} else {
97+
console.log('Inside else');
9698
setSearchUserLoading(true);
9799
fetchSuggestions(value).then((filteredData) => {
100+
console.log('Inside then function', filteredData);
98101
setOptions(filteredData);
99102
setSearchUserLoading(false);
100103
});
104+
console.log('last');
101105
setError(false);
102106
setOpen(true);
103107
}

0 commit comments

Comments
 (0)