1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2020-11-01 18:15:31 +01:00
parent c7a4129b82
commit d1f32524ba
6 changed files with 123 additions and 11 deletions

View File

@ -17,7 +17,6 @@ const action = async ({
stateKey: 'favourited' | 'reblogged' | 'bookmarked' | 'muted' | 'pinned'
statePrev: boolean
}): Promise<void> => {
console.log(stateKey + ' --- ' + statePrev)
const alert = {
title: 'This is a title',
message: 'This is a message'
@ -37,7 +36,6 @@ const action = async ({
if (!res.body[stateKey] === statePrev) {
dispatch(updateStatus(res.body))
console.log('------ ' + res.body[stateKey])
} else {
Alert.alert(alert.title, alert.message, [
{ text: 'OK', onPress: () => console.log('OK Pressed') }