-
-
Notifications
You must be signed in to change notification settings - Fork 346
docs: add missing import to example #1637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Can you remove the other unused imports and apply the changes to the other sections, it seems to also have that issue.
docs/guide/storage.md
Outdated
@@ -79,7 +79,7 @@ VueFire also exposes a smaller composable that only retrieves the url of a file. | |||
<script setup lang="ts"> | |||
import { useFileDialog } from '@vueuse/core' | |||
import { ref as storageRef } from 'firebase/storage' | |||
import { useFirebaseStorage, useStorageFile } from 'vuefire' | |||
import { useFirebaseStorage, useStorageFile, useStorageFileUrl } from 'vuefire' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { useFirebaseStorage, useStorageFile, useStorageFileUrl } from 'vuefire' | |
import { useFirebaseStorage, useStorageFileUrl } from 'vuefire' |
@@ -79,7 +79,7 @@ VueFire also exposes a smaller composable that only retrieves the url of a file. | |||
<script setup lang="ts"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a line above to highlight the added lines:
vue{4,?}
docs/guide/storage.md
Outdated
@@ -75,11 +75,10 @@ Once the picture is uploaded, you can use the `url` reactive variable. For examp | |||
|
|||
VueFire also exposes a smaller composable that only retrieves the url of a file. This is useful if you don't need to upload a file but only display it: | |||
|
|||
```vue | |||
```vue{4,?} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```vue{4,?} | |
```vue{4,11} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By ?
I meant the actual line after editing, sorry it wasn't clear 😆
docs/guide/storage.md
Outdated
<script setup lang="ts"> | ||
import { useFileDialog } from '@vueuse/core' | ||
import { ref as storageRef } from 'firebase/storage' | ||
import { useFirebaseStorage, useStorageFile } from 'vuefire' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant the import here should also be adapted
Ah, thanks for clarifying. I took some time to clarify the copy on the page too. Hope that's okay! |
No description provided.