Skip to content

Commit 5222bbf

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
fix(build): add missing imports and props for text color toggle
1 parent bcdb0f5 commit 5222bbf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { HUD } from './components/HUD';
1616
import { MeasurementPanel } from './components/MeasurementPanel';
1717
import { OFFLINE_LIBRARY } from './data/library';
1818
import { fetchPDBMetadata } from './utils/pdbUtils';
19-
import type { PDBMetadata, Measurement } from './types';
19+
import type { PDBMetadata, Measurement, MeasurementTextColor } from './types';
2020
import {
2121
Camera, RefreshCw, Upload,
2222
Settings, Zap, Activity, Grid3X3, Palette,

src/components/ProteinViewer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ export const ProteinViewer = forwardRef<ProteinViewerRef, ProteinViewerProps>(({
117117
measurements,
118118
onAddMeasurement,
119119
onHover,
120-
isLightMode
120+
isLightMode,
121+
measurementTextColor = 'auto'
121122
}: ProteinViewerProps, ref: React.Ref<ProteinViewerRef>) => {
122123

123124
const containerRef = useRef<HTMLDivElement>(null);

0 commit comments

Comments
 (0)