Merge remote-tracking branch 'origin/iipbs/st/dev'
This commit is contained in:
@@ -357,16 +357,16 @@ const VerificationSelectionReport = ({
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div className="mb-2 flex items-center justify-between">
|
||||
<span className="font-medium">
|
||||
<div className="mb-2">
|
||||
<div className="font-medium">
|
||||
{formatReportItemTitle(item)}
|
||||
</span>
|
||||
</div>
|
||||
<Badge
|
||||
color={
|
||||
TYPE_CODE_COLOR_MAP[item.vrfcMthdCd] ??
|
||||
"gray"
|
||||
}
|
||||
className="text-sm"
|
||||
className="text-sm float-end"
|
||||
>
|
||||
{TYPE_CODE_NAME_MAP[item.vrfcMthdCd] ??
|
||||
item.vrfcMthdNm}
|
||||
@@ -397,8 +397,8 @@ const VerificationSelectionReport = ({
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="w-1/5 bg-container p-4 !pb-2 flex border-r border-border">
|
||||
<div className="card card-border flex-1 bg-background !px-0 max-h-[1000px] flex flex-col">
|
||||
<div className="w-1/5 min-w-0 bg-container p-4 !pb-2 flex border-r border-border">
|
||||
<div className="card card-border min-w-0 flex-1 bg-background !px-0 max-h-[1000px] flex flex-col">
|
||||
<div className="border-b border-border flex justify-between">
|
||||
<div className="flex justify-center items-center text-[2.4rem] ">
|
||||
<h2 className="font-semibold text-title p-4 pr-1">이상치 선별 보고서</h2>
|
||||
@@ -434,14 +434,14 @@ const VerificationSelectionReport = ({
|
||||
<i className="ri-close-line" />
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 pt-2.5 px-4">
|
||||
<div className="flex min-w-0 items-center gap-2 pt-2.5 px-4">
|
||||
<Label className="text-label shrink-0">통계항목</Label>
|
||||
<CodeSelectWithAll
|
||||
upCd="STITEM"
|
||||
value={statsCd}
|
||||
onValueChange={handleStatsCdChange}
|
||||
placeholder="전체"
|
||||
className="w-full"
|
||||
className="min-w-0 flex-1 overflow-hidden"
|
||||
/>
|
||||
</div>
|
||||
<div className="card-body p-2.5 flex-1 flex flex-col overflow-hidden relative min-h-0">
|
||||
|
||||
@@ -5,17 +5,12 @@ import {
|
||||
ENDPOINT,
|
||||
} from "@/shared/config";
|
||||
import { getCookie } from "@/shared/lib";
|
||||
import {
|
||||
type AuthPayload,
|
||||
type AuthService,
|
||||
getRemainingMs,
|
||||
} from "@common/auth";
|
||||
import { type AuthPayload, type AuthService } from "@common/auth";
|
||||
|
||||
import { clearDeviceId, getOrCreateDeviceId } from "../lib/device-id";
|
||||
import {
|
||||
clearRefreshTimer,
|
||||
setToken,
|
||||
setupRefreshTimer,
|
||||
tokenManager,
|
||||
} from "../lib/token-manager";
|
||||
|
||||
@@ -48,10 +43,10 @@ async function login(payload: AuthPayload): Promise<void> {
|
||||
setToken(CLAIM_NAME, accessToken);
|
||||
setToken(AUTH_USER_ID, tokenId);
|
||||
|
||||
const remainingMs = getRemainingMs(accessToken);
|
||||
if (remainingMs > 0) {
|
||||
setupRefreshTimer(silentRefresh, remainingMs);
|
||||
}
|
||||
// const remainingMs = getRemainingMs(accessToken);
|
||||
// if (remainingMs > 0) {
|
||||
// setupRefreshTimer(silentRefresh, remainingMs);
|
||||
// }
|
||||
}
|
||||
|
||||
async function silentRefresh(): Promise<void> {
|
||||
@@ -83,10 +78,10 @@ async function silentRefresh(): Promise<void> {
|
||||
setToken(CLAIM_NAME, accessToken);
|
||||
setToken(AUTH_USER_ID, tokenId);
|
||||
|
||||
const remainingMs = getRemainingMs(accessToken);
|
||||
if (remainingMs > 0) {
|
||||
setupRefreshTimer(silentRefresh, remainingMs);
|
||||
}
|
||||
// const remainingMs = getRemainingMs(accessToken);
|
||||
// if (remainingMs > 0) {
|
||||
// setupRefreshTimer(silentRefresh, remainingMs);
|
||||
// }
|
||||
} catch (error) {
|
||||
console.error(
|
||||
`[silentRefresh] Failed at ${new Date().toISOString()}`,
|
||||
|
||||
Reference in New Issue
Block a user