()
| 5 | import {handleError, successToast} from "@/lib/util"; |
| 6 | |
| 7 | export default function AuthTestButton() { |
| 8 | const onClick = async () => { |
| 9 | const {data, error} = await testAuth(); |
| 10 | if (error) handleError(error); |
| 11 | if (data) successToast(data); |
| 12 | } |
| 13 | |
| 14 | return ( |
| 15 | <Button |
| 16 | color='success' |
| 17 | onPress={onClick} |
| 18 | > |
| 19 | Test Auth |
| 20 | </Button> |
| 21 | ); |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…