forked from storacha/w3up
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a remove button and confirmation modal to make sure folks _really_ want to remove the upload. ### Button on upload info page <img width="1503" alt="Screenshot 2024-02-08 at 13 47 55" src="https://github.com/web3-storage/console/assets/152863/225f1232-a101-4365-95ea-4c367fa72344"> ### Button hover state (red so you know it is dangerous) <img width="1503" alt="Screenshot 2024-02-08 at 13 48 56" src="https://github.com/web3-storage/console/assets/152863/1b64d96b-b1bd-4b8e-ab25-16b0137bb2cb"> ### Confirmation modal <img width="1503" alt="Screenshot 2024-02-08 at 13 49 00" src="https://github.com/web3-storage/console/assets/152863/12fe9ee5-5e8c-49db-a78c-63c2661db563"> resolves storacha#1298
- Loading branch information
Alan Shaw
authored
Feb 9, 2024
1 parent
58f9d79
commit a6f53a8
Showing
3 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { DID } from '@ucanto/interface' | ||
|
||
export const createUploadsListKey = ( | ||
space: DID<'key'>, | ||
cursor?: string, | ||
pre?: boolean | ||
) => `/space/${space}/uploads?cursor=${cursor ?? ''}&pre=${pre ?? false}` |