-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jason Healy
committed
Jan 24, 2020
1 parent
85eb66c
commit 50bc5d5
Showing
7 changed files
with
113 additions
and
11 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
examples/react-graphql/client/src/components/Credential/Credential.tsx
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,26 @@ | ||
import React from 'react' | ||
import { Box, Heading, Text, Icon, Avatar } from 'rimble-ui' | ||
import Page from '../../layout/Page' | ||
|
||
interface Props { | ||
onClick?: () => void | ||
} | ||
|
||
const Component: React.FC<Props> = ({ onClick }) => { | ||
return ( | ||
<Box border={1} borderRadius={5} borderColor={'#555555'} p={3} maxWidth={350} mb={16} onClick={onClick}> | ||
<Box flexDirection={'row'} display={'flex'} alignItems={'center'}> | ||
<Avatar size={'40'} src={''} /> | ||
<Box ml={2}> | ||
<Text fontWeight={'bold'}>Simon</Text> | ||
<Box flexDirection={'row'} display={'flex'}> | ||
<Icon name={'PlayArrow'} /> | ||
<Text>Mircea</Text> | ||
</Box> | ||
</Box> | ||
</Box> | ||
</Box> | ||
) | ||
} | ||
|
||
export default Component |
31 changes: 31 additions & 0 deletions
31
examples/react-graphql/client/src/components/MessageItem/MessageItem.tsx
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,31 @@ | ||
import React from 'react' | ||
import { Box, Heading, Text, Icon, Avatar } from 'rimble-ui' | ||
|
||
import Credential from '../../components/Credential/Credential' | ||
|
||
interface Props { | ||
credentialAction?: () => void | ||
} | ||
|
||
const Component: React.FC<Props> = ({ credentialAction }) => { | ||
return ( | ||
<Box> | ||
<Box flexDirection={'row'} display={'flex'} alignItems={'center'}> | ||
<Avatar size={'50'} src="https://airswap-token-images.s3.amazonaws.com/DAI.png" /> | ||
<Box ml={2}> | ||
<Text> | ||
<b>Simon</b> sent 4 credentials to <b>Mircea</b> | ||
</Text> | ||
</Box> | ||
</Box> | ||
<Box p={3} pl={4}> | ||
<Credential onClick={credentialAction} /> | ||
<Credential onClick={credentialAction} /> | ||
<Credential onClick={credentialAction} /> | ||
<Credential onClick={credentialAction} /> | ||
</Box> | ||
</Box> | ||
) | ||
} | ||
|
||
export default Component |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,7 @@ export const allMessages = gql` | |
} | ||
vc { | ||
rowId | ||
hash | ||
fields { | ||
type | ||
value | ||
|
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