-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: when table row clicked right side panel appear
- Loading branch information
Showing
2 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { | ||
Typography, | ||
Button, | ||
IconButton, | ||
List, | ||
ListItem, | ||
ListItemText | ||
} from '@mui/material'; | ||
import { DrawerStyled, DrawerHeaderStyled } from '../../components/layout/Menu/MenuStyled.js'; | ||
import CloseIcon from '@mui/icons-material/Close'; | ||
|
||
function TrustRelationshipSidePanel({ open, onClose }) { | ||
return ( | ||
<DrawerStyled variant="permanent" open={open} anchor="right" sx={{ zIndex: 10 }}> | ||
<DrawerHeaderStyled> | ||
<IconButton onClick={onClose}> | ||
<CloseIcon /> | ||
</IconButton> | ||
</DrawerHeaderStyled> | ||
|
||
<Typography variant="h4" sx={{fontWeight:'700', marginLeft: '2rem'}}>Establish Trust</Typography> | ||
<Typography variant="h4" sx={{fontWeight:'700', marginLeft: '2rem'}}>Relationship</Typography> | ||
|
||
<List> | ||
<ListItem> | ||
<ListItemText primary="Source Wallet" secondary="WalletZ" /> | ||
</ListItem> | ||
|
||
<ListItem> | ||
<ListItemText primary="Target Wallet" secondary="WalletX" /> | ||
</ListItem> | ||
|
||
<ListItem> | ||
<ListItemText primary="Initiated By" secondary="WalletX" /> | ||
</ListItem> | ||
|
||
<ListItem> | ||
<ListItemText primary="Request Type" secondary="Send" /> | ||
</ListItem> | ||
</List> | ||
|
||
<Button variant="contained" color="primary"> | ||
Accept | ||
</Button> | ||
<Button variant="outlined"> | ||
Decline | ||
</Button> | ||
</DrawerStyled> | ||
); | ||
} | ||
|
||
export default TrustRelationshipSidePanel; |