-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(contacts): detailed contacts view
- Loading branch information
1 parent
c40903f
commit 0ef017b
Showing
5 changed files
with
30 additions
and
3 deletions.
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
24 changes: 23 additions & 1 deletion
24
packages/default-packages/unigraph.contacts/executables/contactViewDetailed.jsx
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
return "WIP" | ||
const { data, callbacks } = params; | ||
|
||
return <div> | ||
<Card variant="outlined" style={{margin: "16px", padding: "16px"}}> | ||
<div style={{display: "flex", marginBottom: "8px", alignItems: "center"}}> | ||
<Avatar style={{marginRight: "16px"}} alt={"profile image of " + data.get('name')?.as('primitive')} src={data.get('profile_image')?.as('primitive')}></Avatar> | ||
<Typography variant="h5">{data.get('name')?.as('primitive')}</Typography> | ||
</div> | ||
<Typography style={{marginBottom: "8px"}}> | ||
<span style={{color: "gray", marginRight: "8px"}}>Primary Email</span> | ||
{data?.['_value']?.['emails']?.['_value[']?.[0]?.['_value.%'] || 'N/A'} | ||
</Typography> | ||
<Typography> | ||
<span style={{color: "gray", marginRight: "8px"}}>Remarks</span> | ||
{data?.['_value']?.['children']?.['_value[']?.map ? | ||
<div style={{display: "inline", marginRight: "8px"}}>{data['_value']['children']['_value['].map((it) => <AutoDynamicView object={new UnigraphObject(it['_value'])} callbacks={callbacks} inline style={{verticalAlign: "middle"}}/>)}</div> : []} | ||
</Typography> | ||
</Card> | ||
<div style={{margin: "16px"}}> | ||
<Typography>Backlinks</Typography> | ||
<BacklinkView data={data} hideHeader/> | ||
</div> | ||
</div> |
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
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