From 8333d9a591ef2d9603146ed1b5651a9020e4a8ce Mon Sep 17 00:00:00 2001 From: moist-webDev Date: Wed, 21 Jun 2023 21:57:24 -0400 Subject: [PATCH] remove copilot comments --- routes/Settings.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/routes/Settings.tsx b/routes/Settings.tsx index db8df56..d0b21fb 100644 --- a/routes/Settings.tsx +++ b/routes/Settings.tsx @@ -27,13 +27,10 @@ export default function Settings({theme, changeTheme, themeMode, clearAll, resyn const handleExport = async () => { const dataToExport = await db.fileExport() const data = JSON.stringify(dataToExport); - // export dataToExport in json format to a file using react-native-fs if (Platform.OS === 'android') { const permissions = await StorageAccessFramework.requestDirectoryPermissionsAsync(); if (permissions.granted) { - // Gets SAF URI from response const uri = permissions.directoryUri; - // Writes file to SAF URI await StorageAccessFramework.createFileAsync(uri, 'tali', 'application/json').then(async (fileUri) => { await StorageAccessFramework.writeAsStringAsync(fileUri, data, { encoding: FileSystem.EncodingType.UTF8 }).catch((err) => console.log(err)) })