미사용 파일정리
This commit is contained in:
@@ -19,9 +19,9 @@ import { Checkbox } from "@/components/ui/checkbox"
|
||||
import { Label } from "@/components/ui/label"
|
||||
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"
|
||||
import { ScrollArea } from "@/components/ui/scroll-area"
|
||||
import { cowApi } from "@/lib/api"
|
||||
import { cowApi } from "@/lib/api/cow.api"
|
||||
import { useAuthStore } from "@/store/auth-store"
|
||||
import { useGlobalFilter, GlobalFilterProvider } from "@/contexts/GlobalFilterContext"
|
||||
import { useFilterStore } from "@/store/filter-store"
|
||||
import { AnalysisYearProvider } from "@/contexts/AnalysisYearContext"
|
||||
import { AuthGuard } from "@/components/auth/auth-guard"
|
||||
|
||||
@@ -70,7 +70,7 @@ function MyCowContent() {
|
||||
const [error, setError] = useState<string | null>(null)
|
||||
const router = useRouter()
|
||||
const { user } = useAuthStore()
|
||||
const { filters, isLoading: isFilterLoading } = useGlobalFilter()
|
||||
const { filters, isLoading: isFilterLoading } = useFilterStore()
|
||||
const [markerTypes, setMarkerTypes] = useState<Record<string, string>>({}) // 마커명 → 타입(QTY/QLT) 매핑
|
||||
|
||||
// 로컬 필터 상태 (검색, 랭킹모드, 정렬)
|
||||
@@ -264,7 +264,7 @@ function MyCowContent() {
|
||||
},
|
||||
rankingOptions
|
||||
}
|
||||
|
||||
// 백엔드 ranking API 호출
|
||||
const response = await cowApi.getRanking(rankingRequest)
|
||||
|
||||
// ==========================================================================================================
|
||||
@@ -952,7 +952,7 @@ function MyCowContent() {
|
||||
<th className="cow-table-header" style={{ width: '60px' }}>성별</th>
|
||||
<th className="cow-table-header" style={{ width: '100px' }}>모개체번호</th>
|
||||
<th className="cow-table-header" style={{ width: '90px' }}>아비 KPN</th>
|
||||
<th className="cow-table-header" style={{ width: '80px' }}>
|
||||
<th className="cow-table-header" style={{ width: '100px', whiteSpace: 'nowrap' }}>
|
||||
{analysisFilter === 'mptOnly' ? '월령(검사일)' : '월령(분석일)'}
|
||||
</th>
|
||||
<th className="cow-table-header" style={{ width: '90px' }}>
|
||||
@@ -1505,11 +1505,11 @@ function MyCowContent() {
|
||||
export default function MyCowPage() {
|
||||
return (
|
||||
<AuthGuard>
|
||||
<GlobalFilterProvider>
|
||||
|
||||
<AnalysisYearProvider>
|
||||
<MyCowContent />
|
||||
</AnalysisYearProvider>
|
||||
</GlobalFilterProvider>
|
||||
|
||||
</AuthGuard>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user