-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implements url based chapi presentation
- Loading branch information
Showing
13 changed files
with
30,612 additions
and
14,132 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
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,8 @@ | ||
import { useSelector } from 'react-redux'; | ||
|
||
import { CredentialRecordRaw } from '../model'; | ||
import { selectSelectedExchangeCredentials } from '../store/slices/credentialFoyer'; | ||
|
||
export function useSelectedExchangeCredentials(): CredentialRecordRaw[] { | ||
return useSelector(selectSelectedExchangeCredentials); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { Text } from 'react-native-elements'; | ||
import { LoadingIndicatorDots } from '../components'; | ||
import { useDynamicStyles } from '../hooks'; | ||
|
||
type GlobalModalBodyProps = { | ||
message: string; | ||
loading?: boolean; | ||
}; | ||
|
||
export default function GlobalModalBody({ | ||
message, | ||
loading=false | ||
}: GlobalModalBodyProps): JSX.Element { | ||
const { mixins } = useDynamicStyles(); | ||
return ( | ||
<> | ||
<Text style={mixins.modalBodyText}> | ||
{message} | ||
</Text> | ||
{loading && <LoadingIndicatorDots />} | ||
</> | ||
); | ||
} | ||
|
||
export const getGlobalModalBody = (message: string, loading?: boolean) => { | ||
return <GlobalModalBody message={message} loading={loading} />; | ||
}; |
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,3 @@ | ||
export const delay = async (ms: number) => { | ||
return new Promise(resolve => setTimeout(resolve, ms)); | ||
}; |
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
Oops, something went wrong.