-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from getAlby/task-pending
chore: add pending icon
- Loading branch information
Showing
3 changed files
with
50 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from "react"; | ||
import { useColorScheme } from "react-native"; | ||
import Svg, { Path, Rect, SvgProps } from "react-native-svg"; | ||
|
||
const PendingTransactionIcon = (props: SvgProps) => { | ||
const colorScheme = useColorScheme(); | ||
|
||
const colors = { | ||
light: { | ||
rectFill: "#DAE9FD", | ||
pathStroke: "#3B81F5", | ||
}, | ||
dark: { | ||
rectFill: "#1E3A89", | ||
pathStroke: "#3B81F5", | ||
}, | ||
}; | ||
|
||
const currentColors = colorScheme === "dark" ? colors.dark : colors.light; | ||
|
||
return ( | ||
<Svg width={40} height={40} viewBox="0 0 40 40" fill="none" {...props}> | ||
<Rect width="40" height="40" rx="20" fill={currentColors.rectFill} /> | ||
<Path | ||
strokeWidth="3.75" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
stroke={currentColors.pathStroke} | ||
d="M15 18.125L19.4107 13.7143C19.7362 13.3889 20.2638 13.3889 20.5892 13.7143L25 18.125M20 14.1667V26.6667" | ||
/> | ||
</Svg> | ||
); | ||
}; | ||
|
||
export default PendingTransactionIcon; |
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