Skip to content

Commit

Permalink
chore: rename internal type
Browse files Browse the repository at this point in the history
  • Loading branch information
christjt committed Aug 16, 2023
1 parent 3caae2d commit 2d1285a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { type ReactElement, useState } from 'react';
import { Menu } from '@cognite/cogs.js';
import { useReveal } from '../../RevealContainer/RevealContext';
import { type QualitySettings, type HighFidelityProps } from './types';
import { type QualitySettings, type QualityProps } from './types';
import { type Cognite3DViewer } from '@cognite/reveal';

const defaultLowFidelitySettings: QualitySettings = {
Expand Down Expand Up @@ -39,7 +39,7 @@ const defaultHighFidelitySettings: QualitySettings = {
export const HighFidelityContainer = ({
lowQualitySettings,
highQualitySettings
}: HighFidelityProps): ReactElement => {
}: QualityProps): ReactElement => {
const viewer = useReveal();
const [active, setActive] = useState(!isLowFidelity(viewer));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import {
} from '@cognite/reveal';
import { type ReactElement } from 'react';

export type HighFidelityProps = {
export type QualityProps = {
lowQualitySettings?: Partial<QualitySettings>;
highQualitySettings?: Partial<QualitySettings>;
};

export type SettingsContainerProps = HighFidelityProps & {
export type SettingsContainerProps = QualityProps & {
customSettingsContent?: ReactElement;
};

Expand Down

0 comments on commit 2d1285a

Please sign in to comment.