+
Move of signals on either one or both axes.
"New" means to separate into a new row or column.
@@ -134,7 +133,7 @@ function MoveLink({
>
Move
-
+
);
}
diff --git a/src/component/panels/SummaryPanel/Overview.tsx b/src/component/panels/SummaryPanel/Overview.tsx
index af0dc12a71..00bcf1c356 100644
--- a/src/component/panels/SummaryPanel/Overview.tsx
+++ b/src/component/panels/SummaryPanel/Overview.tsx
@@ -1,11 +1,10 @@
-/** @jsxImportSource @emotion/react */
-import { css } from '@emotion/react';
+import styled from '@emotion/styled';
import { getAtomCounts } from 'nmr-correlation';
import { memo } from 'react';
import { ErrorColors, Errors } from './CorrelationTable/Constants.js';
-const styles = css`
+const Container = styled.div`
display: flex;
width: 100%;
font-size: 15px;
@@ -69,7 +68,7 @@ function Overview({ correlationsData }: OverviewProps) {
);
- return
{elements}
;
+ return
{elements};
}
export default memo(Overview);
diff --git a/src/component/panels/SummaryPanel/SummaryPanel.tsx b/src/component/panels/SummaryPanel/SummaryPanel.tsx
index bfaa0b21e4..ab5ddad808 100644
--- a/src/component/panels/SummaryPanel/SummaryPanel.tsx
+++ b/src/component/panels/SummaryPanel/SummaryPanel.tsx
@@ -1,5 +1,4 @@
-/** @jsxImportSource @emotion/react */
-import { css } from '@emotion/react';
+import styled from '@emotion/styled';
import type {
Correlation,
Link,
@@ -51,38 +50,37 @@ export type OnEditCorrelationCallback = (
options?: CorrelationOptions,
) => void;
-const panelStyle = css`
+const Container = styled.div`
display: flex;
flex-direction: column;
text-align: center;
height: 100%;
width: 100%;
+`;
- .extra-header-content {
- display: flex;
- flex: 1;
- justify-content: center;
-
- .overview-container {
- width: 100%;
- display: flex;
- align-items: center;
- margin-left: 10px;
- }
+const InnerHeader = styled.div`
+ display: flex;
+ flex: 1;
+ justify-content: center;
+`;
+const OverviewContainer = styled.div`
+ width: 100%;
+ display: flex;
+ align-items: center;
+ margin-left: 10px;
+`;
- .table-view-selection {
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- margin-right: 2px;
- white-space: nowrap;
+const SelectionContainer = styled.div`
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ margin-right: 2px;
+ white-space: nowrap;
+`;
- label {
- font-size: 13px;
- }
- }
- }
+const SelectionLabel = styled.label`
+ font-size: 13px;
`;
const EditLinkDialog = withDialog(EditLinkModal);
@@ -474,7 +472,7 @@ function SummaryPanel() {
const total = correlationsData ? correlationsData.values.length : 0;
return (
-
+
-
-
+
+
-
-
+
+
-
+ View:
-
-
+
+
-
+
);
}
diff --git a/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx b/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx
index caa8e3f73a..bcbe099392 100644
--- a/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx
+++ b/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx
@@ -1,8 +1,8 @@
-/** @jsxImportSource @emotion/react */
-import { Dialog, DialogBody } from '@blueprintjs/core';
-import { css } from '@emotion/react';
+import { Dialog } from '@blueprintjs/core';
import { StructureEditor } from 'react-ocl/full';
+import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
+
interface DatabaseStructureSearchModalProps {
onChange: (idCode: string) => void;
isOpen: boolean;
@@ -25,18 +25,14 @@ export function DatabaseStructureSearchModal({
style={{ width: 720 }}
title="Search by structure"
>
-
+
onChange(idCode)}
/>
-
+
);
}
diff --git a/src/component/panels/informationPanel/InformationEditionModal.tsx b/src/component/panels/informationPanel/InformationEditionModal.tsx
index 211a63f75b..71ba141523 100644
--- a/src/component/panels/informationPanel/InformationEditionModal.tsx
+++ b/src/component/panels/informationPanel/InformationEditionModal.tsx
@@ -1,6 +1,5 @@
-/** @jsxImportSource @emotion/react */
-import { Classes, Dialog, DialogBody, DialogFooter } from '@blueprintjs/core';
-import { css } from '@emotion/react';
+import { Classes, Dialog, DialogFooter } from '@blueprintjs/core';
+import styled from '@emotion/styled';
import { yupResolver } from '@hookform/resolvers/yup';
import { useCallback, useMemo } from 'react';
import { useForm } from 'react-hook-form';
@@ -12,9 +11,16 @@ import { useDispatch } from '../../context/DispatchContext.js';
import { Input2Controller } from '../../elements/Input2Controller.js';
import type { Column } from '../../elements/ReactTable/ReactTable.js';
import ReactTable from '../../elements/ReactTable/ReactTable.js';
+import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
import useSpectrum from '../../hooks/useSpectrum.js';
import { checkUniqueByKey } from '../../utility/checkUniqueByKey.js';
-import { tablePanelStyle } from '../extra/BasicPanelStyle.js';
+
+const Container = styled.div`
+ display: flex;
+ flex-direction: column;
+ height: calc(100% - 30px);
+ width: 100%;
+`;
const metaInfoArraySchema = array()
.of(
@@ -189,12 +195,8 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
const values = watch('metaInfo');
return (
<>
-
-
+
+
-
-
+
+
+
);
}
diff --git a/src/demo/test/TestHighlight.tsx b/src/demo/test/TestHighlight.tsx
index c4ba0c6a3d..4da7755edd 100644
--- a/src/demo/test/TestHighlight.tsx
+++ b/src/demo/test/TestHighlight.tsx
@@ -1,6 +1,4 @@
-/** @jsxImportSource @emotion/react */
-
-import { css } from '@emotion/react';
+import styled from '@emotion/styled';
import {
HighlightProvider,
@@ -24,39 +22,39 @@ const tableTwo = [
{ id: '5', highlight: [] },
];
-const mainDiv = css`
+const Container = styled.div`
display: flex;
padding: 20px;
`;
-const tableDiv = css`
+const PanelContainer = styled.div`
padding: 20px;
`;
-const table = css`
+const Table = styled.table`
border: 1px solid black;
`;
-const th = css`
+const TableHeader = styled.th`
padding: 5px;
font-weight: 600;
`;
-const td = css`
+const TableCell = styled.td`
padding: 5px;
`;
export default function TestHighlight() {
return (