upd : salin link
Deskripsi: - detail kalender event divisi > dapat di copy No Issues
This commit is contained in:
@@ -13,9 +13,10 @@ import { apiDeleteCalendarMember, apiGetCalendarOne, apiGetDivisionOneFeature }
|
|||||||
import { setUpdateCalendar } from "@/lib/calendarUpdate"
|
import { setUpdateCalendar } from "@/lib/calendarUpdate"
|
||||||
import { useAuthSession } from "@/providers/AuthProvider"
|
import { useAuthSession } from "@/providers/AuthProvider"
|
||||||
import { MaterialCommunityIcons } from "@expo/vector-icons"
|
import { MaterialCommunityIcons } from "@expo/vector-icons"
|
||||||
|
import Clipboard from "@react-native-clipboard/clipboard"
|
||||||
import { router, Stack, useLocalSearchParams } from "expo-router"
|
import { router, Stack, useLocalSearchParams } from "expo-router"
|
||||||
import { useEffect, useState } from "react"
|
import { useEffect, useState } from "react"
|
||||||
import { RefreshControl, SafeAreaView, ScrollView, View } from "react-native"
|
import { Pressable, RefreshControl, SafeAreaView, ScrollView, View } from "react-native"
|
||||||
import Toast from "react-native-toast-message"
|
import Toast from "react-native-toast-message"
|
||||||
import { useDispatch, useSelector } from "react-redux"
|
import { useDispatch, useSelector } from "react-redux"
|
||||||
|
|
||||||
@@ -115,6 +116,11 @@ export default function DetailEventCalendar() {
|
|||||||
handleLoadMember();
|
handleLoadMember();
|
||||||
}, [update.member]);
|
}, [update.member]);
|
||||||
|
|
||||||
|
const handleCopy = (text: string) => {
|
||||||
|
Clipboard.setString(text);
|
||||||
|
Toast.show({ type: 'small', text1: 'Berhasil menyalin link', })
|
||||||
|
};
|
||||||
|
|
||||||
async function handleDeleteUser() {
|
async function handleDeleteUser() {
|
||||||
try {
|
try {
|
||||||
const hasil = await decryptToken(String(token?.current));
|
const hasil = await decryptToken(String(token?.current));
|
||||||
@@ -216,10 +222,14 @@ export default function DetailEventCalendar() {
|
|||||||
loading ?
|
loading ?
|
||||||
<Skeleton width={80} height={10} borderRadius={10} widthType="percent" />
|
<Skeleton width={80} height={10} borderRadius={10} widthType="percent" />
|
||||||
:
|
:
|
||||||
<Text style={[Styles.textDefault]}>{data?.linkMeet ? data.linkMeet : '-'}</Text>
|
data?.linkMeet ?
|
||||||
|
<Pressable onPress={() => { handleCopy(data.linkMeet) }}>
|
||||||
|
<Text style={[Styles.textDefault]}>{data.linkMeet}</Text>
|
||||||
|
</Pressable>
|
||||||
|
: <Text style={[Styles.textDefault]}>-</Text>
|
||||||
}
|
}
|
||||||
</View>
|
</View>
|
||||||
<View style={[Styles.rowItemsCenter, Styles.mt10, {alignItems:'flex-start'}]}>
|
<View style={[Styles.rowItemsCenter, Styles.mt10, { alignItems: 'flex-start' }]}>
|
||||||
<MaterialCommunityIcons name="card-text-outline" size={30} color="black" style={Styles.mr10} />
|
<MaterialCommunityIcons name="card-text-outline" size={30} color="black" style={Styles.mr10} />
|
||||||
{
|
{
|
||||||
loading ?
|
loading ?
|
||||||
|
|||||||
@@ -2027,6 +2027,8 @@ PODS:
|
|||||||
- React-utils (= 0.79.5)
|
- React-utils (= 0.79.5)
|
||||||
- RNCAsyncStorage (2.1.2):
|
- RNCAsyncStorage (2.1.2):
|
||||||
- React-Core
|
- React-Core
|
||||||
|
- RNCClipboard (1.16.3):
|
||||||
|
- React-Core
|
||||||
- RNDateTimePicker (8.4.1):
|
- RNDateTimePicker (8.4.1):
|
||||||
- React-Core
|
- React-Core
|
||||||
- RNFBApp (22.4.0):
|
- RNFBApp (22.4.0):
|
||||||
@@ -2328,6 +2330,7 @@ DEPENDENCIES:
|
|||||||
- ReactCodegen (from `build/generated/ios`)
|
- ReactCodegen (from `build/generated/ios`)
|
||||||
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
|
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
|
||||||
- "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)"
|
- "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)"
|
||||||
|
- "RNCClipboard (from `../node_modules/@react-native-clipboard/clipboard`)"
|
||||||
- "RNDateTimePicker (from `../node_modules/@react-native-community/datetimepicker`)"
|
- "RNDateTimePicker (from `../node_modules/@react-native-community/datetimepicker`)"
|
||||||
- "RNFBApp (from `../node_modules/@react-native-firebase/app`)"
|
- "RNFBApp (from `../node_modules/@react-native-firebase/app`)"
|
||||||
- "RNFBDatabase (from `../node_modules/@react-native-firebase/database`)"
|
- "RNFBDatabase (from `../node_modules/@react-native-firebase/database`)"
|
||||||
@@ -2570,6 +2573,8 @@ EXTERNAL SOURCES:
|
|||||||
:path: "../node_modules/react-native/ReactCommon"
|
:path: "../node_modules/react-native/ReactCommon"
|
||||||
RNCAsyncStorage:
|
RNCAsyncStorage:
|
||||||
:path: "../node_modules/@react-native-async-storage/async-storage"
|
:path: "../node_modules/@react-native-async-storage/async-storage"
|
||||||
|
RNCClipboard:
|
||||||
|
:path: "../node_modules/@react-native-clipboard/clipboard"
|
||||||
RNDateTimePicker:
|
RNDateTimePicker:
|
||||||
:path: "../node_modules/@react-native-community/datetimepicker"
|
:path: "../node_modules/@react-native-community/datetimepicker"
|
||||||
RNFBApp:
|
RNFBApp:
|
||||||
@@ -2712,6 +2717,7 @@ SPEC CHECKSUMS:
|
|||||||
ReactCodegen: 272c9bc1a8a917bf557bd9d032a4b3e181c6abfe
|
ReactCodegen: 272c9bc1a8a917bf557bd9d032a4b3e181c6abfe
|
||||||
ReactCommon: 7eb76fcd5133313d8c6a138a5c7dd89f80f189d5
|
ReactCommon: 7eb76fcd5133313d8c6a138a5c7dd89f80f189d5
|
||||||
RNCAsyncStorage: b9f5f78da5d16a853fe3dc22e8268d932fc45a83
|
RNCAsyncStorage: b9f5f78da5d16a853fe3dc22e8268d932fc45a83
|
||||||
|
RNCClipboard: f6679d470d0da2bce2a37b0af7b9e0bf369ecda5
|
||||||
RNDateTimePicker: 60f9e986d61e42169a2716c1b51f1f93dfa82665
|
RNDateTimePicker: 60f9e986d61e42169a2716c1b51f1f93dfa82665
|
||||||
RNFBApp: 12884d3bf9b3a0223efe4a0adce516edf72c4102
|
RNFBApp: 12884d3bf9b3a0223efe4a0adce516edf72c4102
|
||||||
RNFBDatabase: 1e5c4bda4bb47a48820089ddef498f9af21cb52b
|
RNFBDatabase: 1e5c4bda4bb47a48820089ddef498f9af21cb52b
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"@expo/vector-icons": "^14.0.2",
|
"@expo/vector-icons": "^14.0.2",
|
||||||
"@formatjs/intl-getcanonicallocales": "^2.5.5",
|
"@formatjs/intl-getcanonicallocales": "^2.5.5",
|
||||||
"@react-native-async-storage/async-storage": "2.1.2",
|
"@react-native-async-storage/async-storage": "2.1.2",
|
||||||
|
"@react-native-clipboard/clipboard": "^1.16.3",
|
||||||
"@react-native-community/cli": "^19.1.0",
|
"@react-native-community/cli": "^19.1.0",
|
||||||
"@react-native-community/datetimepicker": "8.4.1",
|
"@react-native-community/datetimepicker": "8.4.1",
|
||||||
"@react-native-firebase/app": "^22.4.0",
|
"@react-native-firebase/app": "^22.4.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user