Skip to content

Commit 674a7bb

Browse files
authored
Feat(client): report page suspense 적용 및 트랜지션 수정 (team-bofit#329)
2 parents 0f5631e + 4423b3f commit 674a7bb

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

apps/client/src/pages/report/report-page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useQuery } from '@tanstack/react-query';
1+
import { useSuspenseQuery } from '@tanstack/react-query';
22
import { useNavigate } from 'react-router';
33

44
import { Navigation } from '@bds/ui';
@@ -24,17 +24,17 @@ const ReportPage = () => {
2424
navigate(path);
2525
};
2626

27-
const { data: reportSummaryData } = useQuery(
27+
const { data: reportSummaryData } = useSuspenseQuery(
2828
INSURANCE_QUERY_OPTIONS.REPORT_SUMMARY(),
2929
);
3030

3131
const REPORT_ID = reportSummaryData?.insuranceReportId ?? '';
3232

33-
const { data: reportData } = useQuery(
33+
const { data: reportData } = useSuspenseQuery(
3434
INSURANCE_QUERY_OPTIONS.REPORT(REPORT_ID),
3535
);
3636

37-
const { data: userData } = useQuery(USER_QUERY_OPTIONS.PROFILE());
37+
const { data: userData } = useSuspenseQuery(USER_QUERY_OPTIONS.PROFILE());
3838

3939
return (
4040
<div className={styles.container}>

apps/client/src/widgets/report/components/accordion/accordion.css.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ export const icon = style({
3737
export const panelContainer = recipe({
3838
base: {
3939
overflow: 'hidden',
40-
transition: 'max-height 0.1s ease, opacity 0.3s ease, padding 0.3s ease',
40+
transition: 'max-height 0.2s ease, opacity 0.25s ease, padding 0.3s ease',
4141
display: 'flex',
4242
flexDirection: 'column',
4343
gap: '2.4rem',
4444
},
4545
variants: {
4646
expanded: {
4747
true: {
48-
maxHeight: '100%',
48+
maxHeight: '90rem',
4949
opacity: 1,
5050
paddingTop: '2.4rem ',
5151
},

packages/bds-ui/src/components/input/input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const Input = ({
5858
onClick={handleContainer}
5959
>
6060
<input
61+
enterKeyHint="done"
6162
ref={inputRef}
6263
className={`${styles.inputContent} ${
6364
hasText ? styles.inputFilled : ''

0 commit comments

Comments
 (0)