Skip to content

Commit

Permalink
comment usePartition better
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jan 23, 2025
1 parent 2d8b27e commit 84c37e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/queries/storage/config-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ export type PartitionHook = {
delete: () => void;
};

// driveName, like "/dev/sda"
// mountPath, like "/" or "swap"
/**
* @param driveName like "/dev/sda"
* @param mountPath like "/" or "swap"
*/
export function usePartition(driveName: string, mountPath: string): PartitionHook | undefined {
const model = useConfigModel();
const { mutate } = useConfigModelMutation();
Expand Down

0 comments on commit 84c37e0

Please sign in to comment.