chore(prettier): full repo linting and code reformatting once and for all (#3627)
This commit is contained in:
1 parent
01500a2d4c
commit
9045ddaedc
656 files changed
+21737
-20628
No files matched your search
@@ -49,7 +49,10 @@ export default function Toolbar({ servicesManager }) {
|
||||
return (
|
||||
// The margin for separating the tools on the toolbar should go here and NOT in each individual component (button) item.
|
||||
// This allows for the individual items to be included in other UI components where perhaps alternative margins are desired.
|
||||
<div key={id} className={classnames('mr-1')}>
|
||||
<div
|
||||
key={id}
|
||||
className={classnames('mr-1')}
|
||||
>
|
||||
<Component
|
||||
id={id}
|
||||
{...componentProps}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
export default function ToolbarDivider() {
|
||||
return (
|
||||
<span className="self-center w-4 h-8 mx-2 border-l border-common-dark" />
|
||||
);
|
||||
return <span className="border-common-dark mx-2 h-8 w-4 self-center border-l" />;
|
||||
}
|
||||
@@ -4,19 +4,10 @@ import { LayoutSelector as OHIFLayoutSelector, ToolbarButton } from '@ohif/ui';
|
||||
|
||||
import { ServicesManager } from '@ohif/core';
|
||||
|
||||
function LayoutSelector({
|
||||
rows,
|
||||
columns,
|
||||
className,
|
||||
servicesManager,
|
||||
...rest
|
||||
}) {
|
||||
function LayoutSelector({ rows, columns, className, servicesManager, ...rest }) {
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
|
||||
const {
|
||||
hangingProtocolService,
|
||||
toolbarService,
|
||||
} = (servicesManager as ServicesManager).services;
|
||||
const { hangingProtocolService, toolbarService } = (servicesManager as ServicesManager).services;
|
||||
|
||||
const closeOnOutsideClick = () => {
|
||||
if (isOpen) {
|
||||
|
||||
Reference in new issue
Block a user