improve viewer exports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const useImageViewer = defineStore('image-viewer', {
|
||||
export default defineStore('image-viewer', {
|
||||
state: () => ({
|
||||
src: null as string | null,
|
||||
}),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useImageViewer } from './image';
|
||||
import { useTextEditor } from './text';
|
||||
import useImageViewer from './image';
|
||||
import useTextEditor from './text';
|
||||
|
||||
export { useImageViewer, useTextEditor };
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { uploadToWarren } from '~/lib/api/warrens';
|
||||
import type { DirectoryEntry } from '~/shared/types';
|
||||
|
||||
export const useTextEditor = defineStore('text-editor', {
|
||||
export default defineStore('text-editor', {
|
||||
state: () => ({
|
||||
data: null as {
|
||||
warrenId: string;
|
||||
|
||||
Reference in New Issue
Block a user