mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-09-21 18:50:14 +00:00
perf: use biome
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { SortContext } from "@/context/sort-context"
|
||||
import { useContext } from "react"
|
||||
import { useContext } from "react";
|
||||
import { SortContext } from "@/context/sort-context";
|
||||
|
||||
export function useSort() {
|
||||
const context = useContext(SortContext)
|
||||
if (context === undefined) {
|
||||
throw new Error("useStatus must be used within a SortProvider")
|
||||
}
|
||||
return context
|
||||
const context = useContext(SortContext);
|
||||
if (context === undefined) {
|
||||
throw new Error("useStatus must be used within a SortProvider");
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user