Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 17 additions & 64 deletions assets/images/home-install-art.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/income-graphic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/income-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ API는 미확정입니다. `IncomeState`/`IncomeData`는 화면 모델이며 실

## 공통 수입 그래픽

전달받은 graphic.svg 원본을 income-graphic.svg로 보관하고 공통 IncomeGraphic 컴포넌트로 표시합니다. 기본 100×100, 수입 요약 카드는 88×88로 적용합니다. 배치용 style과 size를 받을 수 있으며 장식 이미지이므로 접근성 읽기에서는 제외합니다. 원본의 민트색 카드·투명 효과는 보존합니다.
전달받은 graphic.png 원본을 income-graphic.png로 보관하고 공통 IncomeGraphic 컴포넌트로 표시합니다. 일부 브라우저의 SVG 효과 렌더링 문제를 피하기 위해 PNG를 사용합니다. 기본 100×100, 수입 요약 카드는 88×88로 적용합니다. 배치용 style과 size를 받을 수 있으며 장식 이미지이므로 접근성 읽기에서는 제외합니다. 원본의 민트색 카드·투명 효과는 보존합니다.
2 changes: 1 addition & 1 deletion src/components/IncomeGraphic.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Image } from 'expo-image';
import type { ImageProps } from 'expo-image';
import graphic from '../../assets/images/income-graphic.svg';
import graphic from '../../assets/images/income-graphic.png';

type Props = {
size?: number;
Expand Down
5 changes: 5 additions & 0 deletions src/types/assets.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ declare module '*.svg' {
const source: number;
export default source;
}

declare module '*.png' {
const source: number;
export default source;
}
Loading