diff --git a/apps/desktop/crates/linux/src/app_info.rs b/apps/desktop/crates/linux/src/app_info.rs index 4729196bd..d982186b6 100644 --- a/apps/desktop/crates/linux/src/app_info.rs +++ b/apps/desktop/crates/linux/src/app_info.rs @@ -123,7 +123,7 @@ pub async fn list_apps_associated_with_ext(file_path: impl AsRef) -> Vec], id: &str) -> Result<(), GlibError> { let Some(app) = DesktopAppInfo::new(id) else { - return Err(GlibError::new(ResourceError::NotFound, "App not found")) + return Err(GlibError::new(ResourceError::NotFound, "App not found")); }; LAUNCH_CTX.with(|ctx| { diff --git a/apps/desktop/src-tauri/src/file.rs b/apps/desktop/src-tauri/src/file.rs index 38605f138..61912f5cc 100644 --- a/apps/desktop/src-tauri/src/file.rs +++ b/apps/desktop/src-tauri/src/file.rs @@ -92,17 +92,15 @@ pub async fn get_file_path_open_with_apps( ids: Vec, node: NodeState<'_>, ) -> Result, ()> { - let Some(library) = node.libraries.get_library(&library).await - else { - return Ok(vec![]); - }; + let Some(library) = node.libraries.get_library(&library).await else { + return Ok(vec![]); + }; - let Ok(paths) = library - .get_file_paths(ids).await - .map_err(|e| {error!("{e:#?}");}) - else { - return Ok(vec![]); - }; + let Ok(paths) = library.get_file_paths(ids).await.map_err(|e| { + error!("{e:#?}"); + }) else { + return Ok(vec![]); + }; #[cfg(target_os = "macos")] return { @@ -110,10 +108,10 @@ pub async fn get_file_path_open_with_apps( .into_values() .flat_map(|path| { let Some(path) = path.and_then(|path| path.into_os_string().into_string().ok()) - else { - error!("File not found in database"); - return None; - }; + else { + error!("File not found in database"); + return None; + }; Some( unsafe { sd_desktop_macos::get_open_with_applications(&path.as_str().into()) } @@ -137,11 +135,10 @@ pub async fn get_file_path_open_with_apps( use sd_desktop_linux::list_apps_associated_with_ext; let apps = future::join_all(paths.into_values().map(|path| async { - let Some(path) = path - else { - error!("File not found in database"); - return None; - }; + let Some(path) = path else { + error!("File not found in database"); + return None; + }; Some( list_apps_associated_with_ext(&path) @@ -168,17 +165,15 @@ pub async fn get_file_path_open_with_apps( return Ok(paths .into_values() .filter_map(|path| { - let Some(path) = path - else { - error!("File not found in database"); - return None; - }; + let Some(path) = path else { + error!("File not found in database"); + return None; + }; - let Some(ext) = path.extension() - else { - error!("Failed to extract file extension"); - return None; - }; + let Some(ext) = path.extension() else { + error!("Failed to extract file extension"); + return None; + }; sd_desktop_windows::list_apps_associated_with_ext(ext) .map_err(|e| { @@ -191,15 +186,27 @@ pub async fn get_file_path_open_with_apps( .iter() .filter_map(|handler| { let (Ok(name), Ok(url)) = ( - unsafe { handler.GetUIName() }.map_err(|e| { error!("{e:#?}");}) - .and_then(|name| unsafe { name.to_string() } - .map_err(|e| { error!("{e:#?}");})), - unsafe { handler.GetName() }.map_err(|e| { error!("{e:#?}");}) - .and_then(|name| unsafe { name.to_string() } - .map_err(|e| { error!("{e:#?}");})), + unsafe { handler.GetUIName() } + .map_err(|e| { + error!("{e:#?}"); + }) + .and_then(|name| { + unsafe { name.to_string() }.map_err(|e| { + error!("{e:#?}"); + }) + }), + unsafe { handler.GetName() } + .map_err(|e| { + error!("{e:#?}"); + }) + .and_then(|name| { + unsafe { name.to_string() }.map_err(|e| { + error!("{e:#?}"); + }) + }), ) else { error!("Failed to get handler info"); - return None + return None; }; Some(OpenWithApplication { name, url }) @@ -223,10 +230,9 @@ pub async fn open_file_path_with( file_ids_and_urls: Vec, node: NodeState<'_>, ) -> Result<(), ()> { - let Some(library) = node.libraries.get_library(&library).await - else { - return Err(()) - }; + let Some(library) = node.libraries.get_library(&library).await else { + return Err(()); + }; let url_by_id = file_ids_and_urls.into_iter().collect::>(); let ids = url_by_id.keys().copied().collect::>(); @@ -246,12 +252,11 @@ pub async fn open_file_path_with( path.as_ref(), #[cfg(not(windows))] path.as_ref().and_then(|path| path.to_str()), - url_by_id.get(id) - ) - else { - error!("File not found in database"); - return Err(()); - }; + url_by_id.get(id), + ) else { + error!("File not found in database"); + return Err(()); + }; #[cfg(target_os = "macos")] return { @@ -290,10 +295,9 @@ pub async fn reveal_items( items: Vec, node: NodeState<'_>, ) -> Result<(), ()> { - let Some(library) = node.libraries.get_library(&library).await - else { - return Err(()) - }; + let Some(library) = node.libraries.get_library(&library).await else { + return Err(()); + }; let (paths, locations): (Vec<_>, Vec<_>) = items diff --git a/apps/mobile/tests/onboarding.yml b/apps/mobile/tests/onboarding.yml index 13a07302d..1df324cc1 100644 --- a/apps/mobile/tests/onboarding.yml +++ b/apps/mobile/tests/onboarding.yml @@ -2,14 +2,14 @@ appId: com.spacedrive.app --- - launchApp: clearState: true -- tapOn: "Get Started" +- tapOn: 'Get Started' - tapOn: - id: "library-name" -- inputText: "TestLib" -- tapOn: "New Library" + id: 'library-name' +- inputText: 'TestLib' +- tapOn: 'New Library' - tapOn: - id: "share-minimal" -- tapOn: "Continue" + id: 'share-minimal' +- tapOn: 'Continue' - tapOn: - id: "drawer-toggle" -- assertVisible: "TestLib" + id: 'drawer-toggle' +- assertVisible: 'TestLib' diff --git a/core/src/api/backups.rs b/core/src/api/backups.rs index ce3f0aa4e..0690e0b21 100644 --- a/core/src/api/backups.rs +++ b/core/src/api/backups.rs @@ -235,7 +235,7 @@ fn restore_backup(node: &Arc, path: PathBuf) -> Result AlphaRouter { R.with2(library()) .mutation(|(node, library), args: ObjectValidatorArgs| async move { - let Some(location) = find_location(&library, args.id) - .exec() - .await? - else { + let Some(location) = find_location(&library, args.id).exec().await? else { return Err(LocationError::IdNotFound(args.id).into()); }; diff --git a/core/src/job/report.rs b/core/src/job/report.rs index 862fefd06..7f671ef6f 100644 --- a/core/src/job/report.rs +++ b/core/src/job/report.rs @@ -176,15 +176,14 @@ impl JobReport { pub fn get_meta(&self) -> (String, Option) { // actions are formatted like "added_location" or "added_location-1" - let Some(action_name) = self.action - .as_ref() - .map( - |action| action.split('-') - .next() - .map(str::to_string) - .unwrap_or_default() - ) else { - return (self.id.to_string(), None); + let Some(action_name) = self.action.as_ref().map(|action| { + action + .split('-') + .next() + .map(str::to_string) + .unwrap_or_default() + }) else { + return (self.id.to_string(), None); }; // create a unique group_key, EG: "added_location-" let group_key = self.parent_id.map_or_else( diff --git a/core/src/library/manager/mod.rs b/core/src/library/manager/mod.rs index d5d3a9e9c..56e89cbee 100644 --- a/core/src/library/manager/mod.rs +++ b/core/src/library/manager/mod.rs @@ -98,15 +98,15 @@ impl Libraries { .is_file() { let Some(Ok(library_id)) = config_path - .file_stem() - .and_then(|v| v.to_str().map(Uuid::from_str)) + .file_stem() + .and_then(|v| v.to_str().map(Uuid::from_str)) else { warn!( "Attempted to load library from path '{}' \ but it has an invalid filename. Skipping...", config_path.display() ); - continue; + continue; }; let db_path = config_path.with_extension("db"); @@ -399,7 +399,9 @@ impl Libraries { async move { loop { - let Ok(SyncMessage::Created) = sync.rx.recv().await else { continue }; + let Ok(SyncMessage::Created) = sync.rx.recv().await else { + continue; + }; p2p::sync::originator(id, &library.sync, &node.nlm, &node.p2p).await; } diff --git a/core/src/location/indexer/shallow.rs b/core/src/location/indexer/shallow.rs index 40a0e7f8f..cbf225db2 100644 --- a/core/src/location/indexer/shallow.rs +++ b/core/src/location/indexer/shallow.rs @@ -38,8 +38,8 @@ pub async fn shallow( ) -> Result<(), JobError> { let location_id = location.id; let Some(location_path) = location.path.as_ref().map(PathBuf::from) else { - return Err(JobError::Location(LocationError::MissingPath(location_id))); - }; + return Err(JobError::Location(LocationError::MissingPath(location_id))); + }; let db = library.db.clone(); diff --git a/core/src/location/indexer/walk.rs b/core/src/location/indexer/walk.rs index 3f44588b1..dd38d0b43 100644 --- a/core/src/location/indexer/walk.rs +++ b/core/src/location/indexer/walk.rs @@ -441,9 +441,10 @@ where return vec![]; }; - let Ok(mut read_dir) = fs::read_dir(path).await + let Ok(mut read_dir) = fs::read_dir(path) + .await .map_err(|e| errors.push(FileIOError::from((path.clone(), e)).into())) - else { + else { return vec![]; }; @@ -490,9 +491,10 @@ where accept_by_children_dir ); - let Ok(rules_per_kind) = IndexerRule::apply_all(indexer_rules, ¤t_path).await + let Ok(rules_per_kind) = IndexerRule::apply_all(indexer_rules, ¤t_path) + .await .map_err(|e| errors.push(e.into())) - else { + else { continue 'entries; }; @@ -512,8 +514,8 @@ where .metadata() .await .map_err(|e| errors.push(FileIOError::from((entry.path(), e)).into())) - else { - continue 'entries; + else { + continue 'entries; }; // TODO: Hard ignoring symlinks for now, but this should be configurable @@ -533,8 +535,8 @@ where { get_inode_and_device_from_path(¤t_path).await } - }.map_err(|e| errors.push(e.into())) - else { + } + .map_err(|e| errors.push(e.into())) else { continue 'entries; }; @@ -592,10 +594,10 @@ where } if accept_by_children_dir.unwrap_or(true) { - let Ok(iso_file_path) = iso_file_path_factory(¤t_path, is_dir) - .map_err(|e| errors.push(e)) - else { - continue 'entries; + let Ok(iso_file_path) = + iso_file_path_factory(¤t_path, is_dir).map_err(|e| errors.push(e)) + else { + continue 'entries; }; paths_buffer.push(WalkingEntry { @@ -615,11 +617,11 @@ where .skip(1) // Skip the current directory as it was already indexed .take_while(|&ancestor| ancestor != root) { - let Ok(iso_file_path) = iso_file_path_factory(ancestor, true) - .map_err(|e| errors.push(e)) - else { - // Checking the next ancestor, as this one we got an error - continue; + let Ok(iso_file_path) = + iso_file_path_factory(ancestor, true).map_err(|e| errors.push(e)) + else { + // Checking the next ancestor, as this one we got an error + continue; }; let mut ancestor_iso_walking_entry = WalkingEntry { @@ -631,9 +633,9 @@ where let Ok(metadata) = fs::metadata(ancestor) .await .map_err(|e| errors.push(FileIOError::from((&ancestor, e)).into())) - else { - // Checking the next ancestor, as this one we got an error - continue; + else { + // Checking the next ancestor, as this one we got an error + continue; }; let Ok((inode, device)) = { #[cfg(target_family = "unix")] @@ -645,7 +647,8 @@ where { get_inode_and_device_from_path(ancestor).await } - }.map_err(|e| errors.push(e.into())) else { + } + .map_err(|e| errors.push(e.into())) else { // Checking the next ancestor, as this one we got an error continue; }; diff --git a/core/src/location/manager/helpers.rs b/core/src/location/manager/helpers.rs index 7d2691048..c15a666b2 100644 --- a/core/src/location/manager/helpers.rs +++ b/core/src/location/manager/helpers.rs @@ -67,8 +67,8 @@ pub(super) fn watch_location( let location_id = location.id; let location_path = location.path.as_ref(); let Some(location_path) = location_path.map(Path::new) else { - return - }; + return; + }; if let Some(mut watcher) = locations_unwatched.remove(&(location_id, library_id)) { if watcher.check_path(location_path) { @@ -88,8 +88,8 @@ pub(super) fn unwatch_location( let location_id = location.id; let location_path = location.path.as_ref(); let Some(location_path) = location_path.map(Path::new) else { - return - }; + return; + }; if let Some(mut watcher) = locations_watched.remove(&(location_id, library_id)) { if watcher.check_path(location_path) { diff --git a/core/src/location/manager/watcher/utils.rs b/core/src/location/manager/watcher/utils.rs index 39be8456c..aea74b5a3 100644 --- a/core/src/location/manager/watcher/utils.rs +++ b/core/src/location/manager/watcher/utils.rs @@ -670,14 +670,18 @@ pub(super) async fn remove( let location_path = extract_location_path(location_id, library).await?; // if it doesn't exist either way, then we don't care - let Some(file_path) = library.db + let Some(file_path) = library + .db .file_path() .find_first(loose_find_existing_file_path_params( - location_id, &location_path, full_path, + location_id, + &location_path, + full_path, )?) .exec() - .await? else { - return Ok(()); + .await? + else { + return Ok(()); }; remove_by_file_path(location_id, full_path, &file_path, library).await diff --git a/core/src/location/mod.rs b/core/src/location/mod.rs index a906672e5..003a8c520 100644 --- a/core/src/location/mod.rs +++ b/core/src/location/mod.rs @@ -814,7 +814,10 @@ async fn check_nested_location( let comps = location_path.components().collect::>(); let is_a_child_location = potential_children.into_iter().any(|v| { let Some(location_path) = v.path else { - warn!("Missing location path on location at check nested location", v.id); + warn!( + "Missing location path on location at check nested location", + v.id + ); return false; }; let comps2 = PathBuf::from(location_path); diff --git a/core/src/location/non_indexed.rs b/core/src/location/non_indexed.rs index 101451e91..5cceee63f 100644 --- a/core/src/location/non_indexed.rs +++ b/core/src/location/non_indexed.rs @@ -105,7 +105,8 @@ pub async fn walk( while let Some(entry) = read_dir.next_entry().await.map_err(|e| (path, e))? { let Ok((entry_path, name)) = normalize_path(entry.path()) - .map_err(|e| errors.push(NonIndexedLocationError::from((path, e)).into())) else { + .map_err(|e| errors.push(NonIndexedLocationError::from((path, e)).into())) + else { continue; }; @@ -124,10 +125,11 @@ pub async fn walk( continue; } - let Ok(metadata) = entry.metadata() + let Ok(metadata) = entry + .metadata() .await .map_err(|e| errors.push(NonIndexedLocationError::from((path, e)).into())) - else { + else { continue; }; @@ -136,9 +138,10 @@ pub async fn walk( } else { let path = Path::new(&entry_path); - let Some(name) = path.file_stem() + let Some(name) = path + .file_stem() .and_then(|s| s.to_str().map(str::to_string)) - else { + else { warn!("Failed to extract name from path: {}", &entry_path); continue; }; diff --git a/core/src/object/orphan_remover.rs b/core/src/object/orphan_remover.rs index ea920df1a..3fe1a5cb4 100644 --- a/core/src/object/orphan_remover.rs +++ b/core/src/object/orphan_remover.rs @@ -63,12 +63,14 @@ impl OrphanRemoverActor { .select(object::select!({ id })) .exec() .await - .map(|objects| objects.into_iter() - .map(|object| object.id) - .collect::>() - ) + .map(|objects| { + objects + .into_iter() + .map(|object| object.id) + .collect::>() + }) .map_err(|e| error!("Failed to fetch orphaned objects: {e:#?}")) - else { + else { break; }; diff --git a/core/src/object/preview/thumbnail/thumbnailer_job.rs b/core/src/object/preview/thumbnail/thumbnailer_job.rs index 9cae738e3..7aee2ffcd 100644 --- a/core/src/object/preview/thumbnail/thumbnailer_job.rs +++ b/core/src/object/preview/thumbnail/thumbnailer_job.rs @@ -147,7 +147,7 @@ impl StatefulJob for ThumbnailerJobInit { image_files .into_iter() - .chain(video_files.into_iter()) + .chain(video_files) .collect::>() }; #[cfg(not(feature = "ffmpeg"))] diff --git a/core/src/p2p/identity_or_remote_identity.rs b/core/src/p2p/identity_or_remote_identity.rs index df2060ab9..0dca9fda9 100644 --- a/core/src/p2p/identity_or_remote_identity.rs +++ b/core/src/p2p/identity_or_remote_identity.rs @@ -41,10 +41,8 @@ impl IdentityOrRemoteIdentity { pub fn to_bytes(&self) -> Vec { match self { - Self::Identity(identity) => vec![&[b'I'], &*identity.to_bytes()].concat(), - Self::RemoteIdentity(identity) => { - vec![[b'R'].as_slice(), &identity.to_bytes()].concat() - } + Self::Identity(identity) => [&[b'I'], &*identity.to_bytes()].concat(), + Self::RemoteIdentity(identity) => [[b'R'].as_slice(), &identity.to_bytes()].concat(), } } } diff --git a/core/src/p2p/p2p_manager.rs b/core/src/p2p/p2p_manager.rs index eb7870688..6ab4d73a1 100644 --- a/core/src/p2p/p2p_manager.rs +++ b/core/src/p2p/p2p_manager.rs @@ -342,10 +342,9 @@ impl P2PManager { .await .unwrap(); - let Header::Connected(identities) = - Header::from_stream(stream).await.unwrap() else { - panic!("unreachable but error handling") - }; + let Header::Connected(identities) = Header::from_stream(stream).await.unwrap() else { + panic!("unreachable but error handling") + }; for identity in identities { nlm.peer_connected2(identity, peer_id).await; diff --git a/core/src/p2p/pairing/mod.rs b/core/src/p2p/pairing/mod.rs index f96668d85..456b22bac 100644 --- a/core/src/p2p/pairing/mod.rs +++ b/core/src/p2p/pairing/mod.rs @@ -257,11 +257,14 @@ impl PairingManager { .unwrap() .insert(pairing_id, tx); let PairingDecision::Accept(library_id) = rx.await.unwrap() else { - info!("The user rejected pairing '{pairing_id}'!"); - // self.emit_progress(pairing_id, PairingStatus::PairingRejected); // TODO: Event to remove from frontend index - stream.write_all(&PairingResponse::Rejected.to_bytes()).await.unwrap(); - return; - }; + info!("The user rejected pairing '{pairing_id}'!"); + // self.emit_progress(pairing_id, PairingStatus::PairingRejected); // TODO: Event to remove from frontend index + stream + .write_all(&PairingResponse::Rejected.to_bytes()) + .await + .unwrap(); + return; + }; info!("The user accepted pairing '{pairing_id}' for library '{library_id}'!"); let library = library_manager.get_library(&library_id).await.unwrap(); @@ -323,7 +326,8 @@ impl PairingManager { // node.re // library_manager.node.nlm.load_library(&library).await; - let Header::Connected(remote_identities) = Header::from_stream(&mut stream).await.unwrap() else { + let Header::Connected(remote_identities) = Header::from_stream(&mut stream).await.unwrap() + else { todo!("unreachable; todo error handling"); }; diff --git a/core/src/p2p/sync/mod.rs b/core/src/p2p/sync/mod.rs index e8c630522..f009ee444 100644 --- a/core/src/p2p/sync/mod.rs +++ b/core/src/p2p/sync/mod.rs @@ -348,10 +348,9 @@ mod responder { pub async fn run(mut tunnel: Tunnel, library: Arc) { let ingest = &library.sync.ingest; - let Ok(mut rx) = - ingest.req_rx.try_lock() else { - return; - }; + let Ok(mut rx) = ingest.req_rx.try_lock() else { + return; + }; ingest .event_tx @@ -364,7 +363,9 @@ mod responder { const OPS_PER_REQUEST: u32 = 100; - let Request::Messages { timestamps } = req else { continue }; + let Request::Messages { timestamps } = req else { + continue; + }; tunnel .write_all( diff --git a/core/src/volume/mod.rs b/core/src/volume/mod.rs index 0a2ef5951..636904814 100644 --- a/core/src/volume/mod.rs +++ b/core/src/volume/mod.rs @@ -251,9 +251,9 @@ pub async fn get_volumes() -> Vec { #[cfg(windows)] let Ok((disk_name, mount_point)) = ({ use normpath::PathExt; - mount_point.normalize_virtually().map(|p| { - (p.localize_name().to_os_string(), p.into_path_buf()) - }) + mount_point + .normalize_virtually() + .map(|p| (p.localize_name().to_os_string(), p.into_path_buf())) }) else { return None; }; diff --git a/crates/file-ext/src/magic.rs b/crates/file-ext/src/magic.rs index 7f6d4a092..542b6b08d 100644 --- a/crates/file-ext/src/magic.rs +++ b/crates/file-ext/src/magic.rs @@ -178,16 +178,16 @@ impl Extension { always_check_magic_bytes: bool, ) -> Option { let Some(ext_str) = path.as_ref().extension().and_then(OsStr::to_str) else { - return None - }; + return None; + }; let Some(ext) = Extension::from_str(ext_str) else { - return None + return None; }; let Ok(ref mut file) = File::open(&path).await else { - return None - }; + return None; + }; match ext { // we don't need to check the magic bytes unless there is conflict diff --git a/interface/app/$libraryId/Explorer/FilePath/LayeredFileIcon.tsx b/interface/app/$libraryId/Explorer/FilePath/LayeredFileIcon.tsx index 1cba9b356..87623b3ca 100644 --- a/interface/app/$libraryId/Explorer/FilePath/LayeredFileIcon.tsx +++ b/interface/app/$libraryId/Explorer/FilePath/LayeredFileIcon.tsx @@ -1,6 +1,6 @@ +import { getLayeredIcon } from '@sd/assets/util'; import { type ImgHTMLAttributes } from 'react'; import { type ObjectKindKey } from '@sd/client'; -import { getLayeredIcon } from '@sd/assets/util'; interface LayeredFileIconProps extends ImgHTMLAttributes { kind: ObjectKindKey; diff --git a/interface/app/$libraryId/settings/library/tags/EditForm.tsx b/interface/app/$libraryId/settings/library/tags/EditForm.tsx index 4075a059a..70be40198 100644 --- a/interface/app/$libraryId/settings/library/tags/EditForm.tsx +++ b/interface/app/$libraryId/settings/library/tags/EditForm.tsx @@ -68,11 +68,19 @@ export default ({ tag, onDelete }: Props) => { -
- +
+ - +
diff --git a/interface/app/$libraryId/settings/library/tags/index.tsx b/interface/app/$libraryId/settings/library/tags/index.tsx index 61bf3c869..fad2be352 100644 --- a/interface/app/$libraryId/settings/library/tags/index.tsx +++ b/interface/app/$libraryId/settings/library/tags/index.tsx @@ -23,7 +23,7 @@ export const Component = () => { // Set the first tag as selected when the tags list data is first loaded useEffect(() => { - if (tags?.data?.length || 0 > 1 && !selectedTag) setSelectedTag(tags.data?.[0] ?? null); + if (tags?.data?.length || (0 > 1 && !selectedTag)) setSelectedTag(tags.data?.[0] ?? null); // eslint-disable-next-line react-hooks/exhaustive-deps }, [tags?.data]); diff --git a/interface/components/AlertDialog.tsx b/interface/components/AlertDialog.tsx index 24e4fba45..11e74408c 100644 --- a/interface/components/AlertDialog.tsx +++ b/interface/components/AlertDialog.tsx @@ -39,7 +39,7 @@ const AlertDialog = (props: Props) => { }} size="icon" > - + } /> diff --git a/interface/components/TEXTViewer.tsx b/interface/components/TEXTViewer.tsx index ee39d7020..a0797e87d 100644 --- a/interface/components/TEXTViewer.tsx +++ b/interface/components/TEXTViewer.tsx @@ -64,7 +64,10 @@ export const TEXTViewer = memo( // Use link to normalize URL return link ? ( -
+			
 				{quickPreviewContent}
 			
) : null; diff --git a/packages/ui/src/Dialog.tsx b/packages/ui/src/Dialog.tsx index 8bc1c73fd..1450d0ea9 100644 --- a/packages/ui/src/Dialog.tsx +++ b/packages/ui/src/Dialog.tsx @@ -188,7 +188,7 @@ export function Dialog({ {props.children}
-
+
{form.formState.isSubmitting && } {props.buttonsSideContent && (
{props.buttonsSideContent}
diff --git a/packages/ui/src/Input.tsx b/packages/ui/src/Input.tsx index a9a4c031a..b59e3ada1 100644 --- a/packages/ui/src/Input.tsx +++ b/packages/ui/src/Input.tsx @@ -86,7 +86,7 @@ export const Input = forwardRef( e.stopPropagation(); }} ref={ref} - autoComplete={props.autoComplete || "off"} + autoComplete={props.autoComplete || 'off'} {...props} />