fix(viewport): Reset viewport state and fix CINE looping, thumbnail resolution, and dynamic tool settings (#4037)

This commit is contained in:
Alireza authored and GitHub committed 2024-04-16 11:04:48 -04:00
1 parent a6c6fff43a
commit f99a0bfb31
80 files changed
+1129 -801

No files matched your search

@@ -1,11 +1,19 @@
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '../Icon/Icon';
function LayoutPreset({ onSelection, title, icon, commandOptions, classNames }) {
function LayoutPreset({
onSelection,
title,
icon,
commandOptions,
classNames: classNameProps,
disabled,
}) {
return (
<div
className={classNames}
className={classNames(classNameProps, disabled && 'ohif-disabled')}
onClick={() => {
onSelection(commandOptions);
}}
@@ -29,6 +37,7 @@ LayoutPreset.propTypes = {
icon: PropTypes.string.isRequired,
commandOptions: PropTypes.object.isRequired,
classNames: PropTypes.string,
disabled: PropTypes.bool,
};
export default LayoutPreset;