chore(format): add prettier-plugin-organize-imports and sort imports
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { allow, deny } from "@/lib/policy/assert"
|
||||
import { useChatStore } from "@/store/chat"
|
||||
import { useAuthStore } from "@/store/auth"
|
||||
import { useChatStore } from "@/store/chat"
|
||||
|
||||
export function listChatSessions() {
|
||||
return useChatStore.getState().sessions
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { allow, deny } from "@/lib/policy/assert"
|
||||
import { addNotification } from "@/lib/api/notifications"
|
||||
import { allow, deny } from "@/lib/policy/assert"
|
||||
import { useAuthStore } from "@/store/auth"
|
||||
import { useCommentStore } from "@/store/comments"
|
||||
import { usePostStore } from "@/store/posts"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { resolveOwnerShop } from "@/lib/domain/resolve-current-shop"
|
||||
import { allow, deny } from "@/lib/policy/assert"
|
||||
import type { Actor } from "@/lib/policy/actor"
|
||||
import { allow, deny } from "@/lib/policy/assert"
|
||||
import type { PolicyDecision } from "@/lib/policy/decision"
|
||||
import type { PlayerService } from "@/lib/types"
|
||||
import { useAuthStore } from "@/store/auth"
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { allow, deny } from "@/lib/policy/assert"
|
||||
import { addNotification } from "@/lib/api/notifications"
|
||||
import { allow, deny } from "@/lib/policy/assert"
|
||||
import { useAuthStore } from "@/store/auth"
|
||||
import { usePostStore } from "@/store/posts"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { allow, deny, requireAuth } from "@/lib/policy/assert"
|
||||
import type { Actor } from "@/lib/policy/actor"
|
||||
import { allow, deny, requireAuth } from "@/lib/policy/assert"
|
||||
import type { PolicyDecision } from "@/lib/policy/decision"
|
||||
import type { OrderStatus } from "@/lib/types"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Player, PlayerService, Shop } from "@/lib/types"
|
||||
import type { SearchResponse, SearchResultItem, SearchSort } from "@/lib/search/types"
|
||||
import type { Player, PlayerService, Shop } from "@/lib/types"
|
||||
|
||||
export interface SearchCatalogParams {
|
||||
q?: string
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"use client"
|
||||
|
||||
import { useCallback } from "react"
|
||||
import { useAuthStore } from "@/store/auth"
|
||||
import { useLoginDialogStore } from "@/store/login-dialog"
|
||||
import { useCallback } from "react"
|
||||
|
||||
export function useRequireAuth() {
|
||||
const isAuthenticated = useAuthStore((s) => s.isAuthenticated)
|
||||
|
||||
Reference in New Issue
Block a user