Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rortan134 committed Jul 22, 2024
1 parent 4cb88e9 commit 3f01277
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ const ProtectedAction = ({ children }) => {

```tsx
// Only allows uploads to start when user is logged in
// When not logged in, the dialog will appear instead and `startUpload` won't be called
// When not logged in, the dialog will replace it instead and `startUpload` won't be called
<ProtectedAction>
<button onClick={startUpload}>
<span>Click to upload files</span>
</button>
</ProtectedAction>
// ^ Renders <DialogTrigger><span>...</span></DialogTrigger> if `isLoggedIn = false`
```

## Usage
Expand Down

0 comments on commit 3f01277

Please sign in to comment.