Skip to content

Commit

Permalink
feat(web): use soft delete when click delete file button
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaiyoKung committed Aug 19, 2024
1 parent d91a00c commit e1eb9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/app/_components/File.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function File({ path, showDelete = false }: FileProps) {
{showDelete && (
<button
className="text-xs bg-red-500 hover:bg-red-600 transition-colors border border-red-500 text-white px-2 py-1 rounded-full"
onClick={() => deleteFile(path)}
onClick={() => deleteFile(path, true)}
>
Del
</button>
Expand Down

0 comments on commit e1eb9c6

Please sign in to comment.