-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jan <[email protected]>
- Loading branch information
Jan
authored
Feb 22, 2024
1 parent
3f7e684
commit 055d14e
Showing
16 changed files
with
95 additions
and
43 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
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,24 @@ | ||
import { YStack, Button, Spinner } from '@internal/ui' | ||
|
||
interface DualResponseButtonProps { | ||
isAccepting?: boolean | ||
onAccept: () => void | ||
onDecline: () => void | ||
} | ||
|
||
export default function DualResponseButtons({ | ||
onAccept, | ||
onDecline, | ||
isAccepting, | ||
}: DualResponseButtonProps) { | ||
return ( | ||
<YStack gap="$2" py="$2"> | ||
<Button.Solid disabled={isAccepting} onPress={onAccept}> | ||
{isAccepting ? <Spinner variant="dark" /> : 'Accept'} | ||
</Button.Solid> | ||
<Button.Outline disabled={isAccepting} onPress={onDecline}> | ||
Decline | ||
</Button.Outline> | ||
</YStack> | ||
) | ||
} |
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
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,16 @@ | ||
import type { ScrollViewProps as TScrollViewProps } from 'tamagui' | ||
|
||
import { Spacer, ScrollView as TScrollView } from 'tamagui' | ||
|
||
interface ScrollViewProps extends TScrollViewProps { | ||
safeAreaBottom?: number | ||
} | ||
|
||
export const ScrollView = ({ safeAreaBottom, children, ...props }: ScrollViewProps) => { | ||
return ( | ||
<TScrollView {...props}> | ||
{children} | ||
<Spacer height={safeAreaBottom} /> | ||
</TScrollView> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export const HEADER_STATUS_BAR_HEIGHT = 56 | ||
export const BASE_CREDENTIAL_CARD_HEIGHT = 196 | ||
export const BASE_CREDENTIAL_CARD_HEIGHT = 212 | ||
export const CREDENTIAL_TOP_INFO_OFFSET = 56 | ||
export const CREDENTIAL_TOP_INFO_HEIGHT = 64 | ||
export const HEADER_TITLE_TEXT_HEIGHT = 38 |
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ export { | |
CornerDownRight, | ||
AlertOctagon, | ||
Inbox, | ||
X, | ||
} from '@tamagui/lucide-icons' |
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