Skip to content

Commit b4fd8c9

Browse files
committed
Adjust after rebase
1 parent aea27cd commit b4fd8c9

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

frontend/src/api/autogen/types.gen.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,26 @@ export type StratigraphicColumn_api = {
724724
type: string | null;
725725
};
726726

727+
/**
728+
* Stratigraphic unit from SMDA
729+
*
730+
* Camel case attributes needed for esvIntersection component in front-end
731+
*/
732+
export type StratigraphicUnit_api = {
733+
identifier: string;
734+
top: string;
735+
base: string;
736+
stratUnitLevel: number;
737+
stratUnitType: string;
738+
topAge: number | number;
739+
baseAge: number | number;
740+
stratUnitParent: string | null;
741+
colorR: number;
742+
colorG: number;
743+
colorB: number;
744+
lithologyType?: number | number | string;
745+
};
746+
727747
/**
728748
* A single observation of a summary vector at a specific date.
729749
*/

frontend/src/modules/Intersection/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import type { DrawPreviewFunc } from "@framework/Preview";
33
import previewImg from "./preview.svg";
44

55
export const preview: DrawPreviewFunc = function (width: number, height: number) {
6-
return <img src={previewImg} style={{ width, height }} className="object-cover object-center" />;
6+
return <image href={previewImg} width={width} height={height} />;
77
};

0 commit comments

Comments
 (0)