diff --git a/package.json b/package.json
index ae5e5faf..966adb1d 100644
--- a/package.json
+++ b/package.json
@@ -139,6 +139,7 @@
"exports": {
".": null,
"./components": "./dist/components/index.js",
+ "./uberComponents": "./dist/uberComponents/index.js",
"./containers": "./dist/containers/index.js",
"./services": "./dist/services/index.js",
"./hooks": "./dist/hooks/index.js",
diff --git a/src/components/BaseLayout/BaseLayout.module.scss b/src/components/BaseLayout/BaseLayout.module.scss
deleted file mode 100644
index f566b4a6..00000000
--- a/src/components/BaseLayout/BaseLayout.module.scss
+++ /dev/null
@@ -1,35 +0,0 @@
-.content {
- background: 0;
- position: relative;
- padding-bottom: 64px;
-}
-
-.pageHeader {
- flex: 1;
- display: flex;
- flex-direction: column;
- padding: 24px 20px;
-
- @media screen and (min-width: 1281px) {
- max-width: 1120px;
- }
-}
-
-.pageContentWrapper {
- @media screen and (min-width: 1281px) {
- display: flex;
- justify-content: center;
- }
-}
-
-.pageContent {
- flex: 1;
- display: flex;
- flex-direction: column;
- padding: 40px 20px;
- gap: 40px;
-
- @media screen and (min-width: 1281px) {
- max-width: 1120px;
- }
-}
diff --git a/src/components/BaseLayout/BaseLayout.styles.ts b/src/components/BaseLayout/BaseLayout.styles.ts
index 5b9101f5..dc004dfe 100644
--- a/src/components/BaseLayout/BaseLayout.styles.ts
+++ b/src/components/BaseLayout/BaseLayout.styles.ts
@@ -1,5 +1,26 @@
import { Layout } from 'antd';
-import styled from 'styled-components';
+import { isNumber, isString } from 'lodash';
+import styled, { css } from 'styled-components';
+
+const maxWidthStyles = css<{ $maxWidth?: number | string }>`
+ ${({ $maxWidth }) => {
+ if (isNumber($maxWidth)) {
+ return css`
+ max-width: ${() => `${$maxWidth}px`};
+ `;
+ }
+
+ if (isString($maxWidth)) {
+ return css`
+ max-width: ${() => `${$maxWidth}`};
+ `;
+ }
+
+ return css`
+ max-width: 1080px;
+ `;
+ }}
+`;
export const S = {
Container: styled(Layout)`
@@ -10,9 +31,42 @@ export const S = {
padding-top: 50px;
}
`,
- PageWrapper: styled.div`
- background-color: ${({ theme }) => theme.primaryPalette.bcp_1};
+ Layout: styled(Layout)`
+ background: 0;
+ position: relative;
+ padding-bottom: 64px;
+ `,
+ PageHeaderContainer: styled.div`
+ background-color: ${({ theme }) => theme.neutralPalette.gray_1};
display: flex;
- justify-content: center;
+ flex-direction: column;
+ align-items: center;
+ padding: 0 24px;
+ `,
+ PageHeader: styled.div<{ $maxWidth?: number | string }>`
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ padding: 24px 0;
+ gap: 32px 0;
+ width: 100%;
+
+ ${maxWidthStyles}
+ `,
+ PageContentContainer: styled.div`
+ padding: 0 24px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ `,
+ PageContent: styled.div<{ $maxWidth?: number | string }>`
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ padding: 32px 0;
+ gap: 24px 0;
+ width: 100%;
+
+ ${maxWidthStyles}
`,
};
diff --git a/src/components/BaseLayout/Footer/index.tsx b/src/components/BaseLayout/Footer/index.tsx
index 43bc610d..99ab8418 100644
--- a/src/components/BaseLayout/Footer/index.tsx
+++ b/src/components/BaseLayout/Footer/index.tsx
@@ -10,10 +10,7 @@ export function AppFooter(props: Props) {
return (
- Made with ❤️ by{' '}
-
- Beda Software
-
+ Testing - Ferrer Pulmonary
);
diff --git a/src/components/BaseLayout/PageContainer/PageContainer.stories.tsx b/src/components/BaseLayout/PageContainer/PageContainer.stories.tsx
new file mode 100644
index 00000000..4a43d292
--- /dev/null
+++ b/src/components/BaseLayout/PageContainer/PageContainer.stories.tsx
@@ -0,0 +1,172 @@
+import { CalendarOutlined, MailOutlined, PhoneOutlined, PlusOutlined } from '@ant-design/icons';
+import { Meta, StoryObj } from '@storybook/react';
+import { Button, Input } from 'antd';
+import styled from 'styled-components';
+
+import { Table } from 'src/components/Table';
+import { Tabs } from 'src/components/Tabs';
+import { Text } from 'src/components/Typography';
+import { withColorSchemeDecorator } from 'src/storybook/decorators';
+
+import { PageContainer, PageContainerProps } from './index';
+
+const content = (
+ <>
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. In suscipit magna sed pretium maximus. Duis
+ bibendum a lacus ut commodo. Nam eget justo tristique, tincidunt ligula vel, accumsan odio. Morbi purus
+ ante, bibendum vitae arcu eget, ultrices faucibus dolor. Sed fermentum blandit malesuada. Duis fringilla ac
+ tortor ut convallis. Fusce iaculis arcu dui. Ut non neque rhoncus, tincidunt ipsum in, lobortis magna. Donec
+ aliquet leo tellus. Proin pulvinar lacus sodales tortor eleifend rhoncus. Praesent varius maximus pulvinar.
+
+ >
+);
+
+const table = (
+
'-',
+ },
+ {
+ title: 'Practitioner',
+ dataIndex: 'practitioner',
+ key: 'practitioner',
+ width: '50%',
+ render: () => '-',
+ },
+ ]}
+ />
+);
+
+const tabs = (
+
+);
+
+const S = {
+ Container: styled.div`
+ background-color: ${({ theme }) => theme.neutralPalette.gray_2};
+ `,
+ CustomRightColumn: styled.div`
+ display: flex;
+ align-items: center;
+ gap: 0 16px;
+ `,
+ Item: styled.div`
+ display: flex;
+ align-items: center;
+ gap: 0 4px;
+ color: ${({ theme }) => theme.neutral.secondaryText};
+ `,
+};
+
+const rightColumn1 = (
+
+
+
+ 05/12/1955 • 66 y.o.
+
+
+
+ +972-222-3333
+
+
+
+ cooper@gmail.com
+
+
+);
+
+const rightColumn2 = (
+ <>
+
+ }>
+ Add patient
+
+ >
+);
+
+const meta: Meta = {
+ title: 'Layout / PageContainer',
+ component: PageContainer,
+ // @ts-ignore
+ decorators: [withColorSchemeDecorator],
+ args: {
+ title: 'Patients',
+ children: content,
+ },
+ render: (args) => {
+ return (
+
+
+
+ );
+ },
+};
+
+export default meta;
+
+type Story = StoryObj;
+
+export const Default: Story = {
+ args: {
+ title: 'Madison Cooper',
+ headerRightColumn: rightColumn1,
+ },
+};
+
+export const WithTable: Story = {
+ args: {
+ variant: 'with-table',
+ children: table,
+ headerRightColumn: rightColumn2,
+ },
+};
+
+export const WithTabs: Story = {
+ args: {
+ variant: 'with-tabs',
+ header: {
+ children: tabs,
+ },
+ },
+};
+
+export const FullWidth: Story = {
+ args: {
+ maxWidth: '100%',
+ },
+};
+
+export const CustomWidth: Story = {
+ args: {
+ maxWidth: 500,
+ },
+};
diff --git a/src/components/BaseLayout/PageContainer/index.tsx b/src/components/BaseLayout/PageContainer/index.tsx
new file mode 100644
index 00000000..739701b2
--- /dev/null
+++ b/src/components/BaseLayout/PageContainer/index.tsx
@@ -0,0 +1,52 @@
+import { S } from './styles';
+import { BasePageContentProps, BasePageHeaderProps } from '..';
+
+export interface PageContainerProps {
+ variant?: 'default' | 'with-table' | 'with-tabs';
+ maxWidth?: number | string;
+ title?: React.ReactNode;
+ headerLeftColumn?: React.ReactNode;
+ headerRightColumn?: React.ReactNode;
+ children?: React.ReactNode;
+
+ header?: BasePageHeaderProps;
+ content?: BasePageContentProps;
+}
+
+export function PageContainer(props: PageContainerProps = {}) {
+ const {
+ variant = 'default',
+ title,
+ header,
+ content,
+ children,
+ maxWidth,
+ headerLeftColumn,
+ headerRightColumn,
+ } = props;
+
+ return (
+ <>
+
+
+
+ {headerLeftColumn ? (
+ headerLeftColumn
+ ) : (
+ <>{title && {title}}>
+ )}
+
+ {headerRightColumn && {headerRightColumn}}
+
+ {header?.children}
+
+
+ {content?.children ?? children}
+
+ >
+ );
+}
+
+export function PageContainerTitle(props: React.HTMLAttributes) {
+ return ;
+}
diff --git a/src/components/BaseLayout/PageContainer/styles.ts b/src/components/BaseLayout/PageContainer/styles.ts
new file mode 100644
index 00000000..b942f4cb
--- /dev/null
+++ b/src/components/BaseLayout/PageContainer/styles.ts
@@ -0,0 +1,57 @@
+import styled, { css } from 'styled-components';
+
+import { BasePageContent, BasePageHeader } from '..';
+import { Title } from 'src/components/Typography';
+import { mobileWidth } from 'src/theme/utils';
+
+export const S = {
+ HeaderContainer: styled(BasePageHeader)<{ $variant?: 'default' | 'with-table' | 'with-tabs' }>`
+ display: flex;
+ flex-direction: column;
+
+ ${({ $variant }) =>
+ $variant === 'with-table' &&
+ css`
+ padding-bottom: 79px;
+ `}
+
+ ${({ $variant }) =>
+ $variant === 'with-tabs' &&
+ css`
+ padding-bottom: 0;
+ `}
+ `,
+ Header: styled.div`
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: 16px 40px;
+ position: relative;
+
+ @media screen and (max-width: ${() => `${mobileWidth - 1}px`}) {
+ padding-right: 48px;
+ }
+ `,
+ Title: styled(Title)`
+ margin-bottom: 0 !important;
+ `,
+ HeaderLeftColumn: styled.div`
+ display: flex;
+ align-items: center;
+ gap: 0 8px;
+ `,
+ HeaderRightColumn: styled.div`
+ display: flex;
+ align-items: center;
+ gap: 0 40px;
+ `,
+ ContentContainer: styled(BasePageContent)<{ $variant?: 'default' | 'with-table' | 'with-tabs' }>`
+ ${({ $variant }) =>
+ $variant === 'with-table' &&
+ css`
+ padding-top: 0;
+ margin-top: -47px;
+ `}
+ `,
+};
diff --git a/src/components/BaseLayout/index.tsx b/src/components/BaseLayout/index.tsx
index 591222aa..3154f315 100644
--- a/src/components/BaseLayout/index.tsx
+++ b/src/components/BaseLayout/index.tsx
@@ -1,8 +1,5 @@
-import { Layout } from 'antd';
-import classNames from 'classnames';
import { ReactNode } from 'react';
-import s from './BaseLayout.module.scss';
import { S } from './BaseLayout.styles';
import { AppFooter } from './Footer';
import { AppSidebar } from './Sidebar';
@@ -11,49 +8,58 @@ import { AppTabBar } from './TabBar';
interface Props {
children: ReactNode;
style?: React.CSSProperties;
+ className?: string | undefined;
}
-export function BaseLayout({ children, style }: Props) {
+export function BaseLayout({ children, style, className }: Props) {
return (
-
+
-
+
{children}
-
+
);
}
-export function AnonymousLayout({ children, style }: Props) {
+export function AnonymousLayout({ children, style, className }: Props) {
return (
-
+
-
+
{children}
-
+
);
}
-export function BasePageHeader(props: React.HTMLAttributes) {
- const { className, ...rest } = props;
+export type BasePageHeaderProps = React.HTMLAttributes & {
+ maxWidth?: number | string;
+};
+
+export function BasePageHeader(props: BasePageHeaderProps) {
+ const { maxWidth, ...rest } = props;
return (
-
-
-
+
+
+
);
}
-export function BasePageContent(props: React.HTMLAttributes) {
- const { className, ...rest } = props;
+export type BasePageContentProps = React.HTMLAttributes & {
+ maxWidth?: number | string;
+};
+
+export function BasePageContent(props: BasePageContentProps) {
+ const { maxWidth, ...rest } = props;
return (
-
+
+
+
);
}
diff --git a/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/MarkDownEditor/context.tsx b/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/MarkDownEditor/context.tsx
deleted file mode 100644
index aee79923..00000000
--- a/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/MarkDownEditor/context.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import { RealmPlugin } from '@mdxeditor/editor';
-import React, { createContext } from 'react';
-import { ItemContext } from 'sdc-qrf';
-
-export type MarkDownEditorContextProps = {
- MarkdownEditorWrapper?: React.ComponentType;
- initPlugins?: (context?: ItemContext) => RealmPlugin[];
- initToolbarPlugins?: (context?: ItemContext) => React.ReactNode[];
-};
-
-export const MarkDownEditorContext = createContext({});
diff --git a/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/MarkDownEditor/index.tsx b/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/MarkDownEditor/index.tsx
index c464c8e0..d22fe5e1 100644
--- a/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/MarkDownEditor/index.tsx
+++ b/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/MarkDownEditor/index.tsx
@@ -1,35 +1,29 @@
import {
- BoldItalicUnderlineToggles,
CodeToggle,
- headingsPlugin,
- linkPlugin,
- listsPlugin,
ListsToggle,
markdownShortcutPlugin,
MDXEditor,
- MDXEditorMethods,
+ headingsPlugin,
+ listsPlugin,
quotePlugin,
+ linkPlugin,
toolbarPlugin,
UndoRedo,
+ BoldItalicUnderlineToggles,
+ MDXEditorMethods,
} from '@mdxeditor/editor';
-import { Fragment, useContext, useEffect, useMemo, useRef } from 'react';
+import { useEffect, useRef } from 'react';
import { useTheme } from 'styled-components';
import '@mdxeditor/editor/style.css';
-import { Divider } from 'antd';
-import { MarkDownEditorContext } from './context';
-import { S } from './styles';
-import { ItemContext } from 'sdc-qrf';
interface MarkDownEditorProps {
markdownString: string;
onChange?: (markdown: string) => void;
readOnly?: boolean;
- context?: ItemContext;
}
-export function MarkDownEditor(props: MarkDownEditorProps) {
- const { markdownString = '', readOnly = false, onChange, context } = props;
+export function MarkDownEditor({ markdownString = '', readOnly = false, onChange }: MarkDownEditorProps) {
const mdxEditorRef = useRef(null);
useEffect(() => {
@@ -40,59 +34,48 @@ export function MarkDownEditor(props: MarkDownEditorProps) {
const theme = useTheme();
- const pluginsContext = useContext(MarkDownEditorContext);
-
// TODO Add a button to add link and make a custom modal to enter the link
// https://mdxeditor.dev/editor/api/functions/linkDialogPlugin
- const plugins = useMemo(() => {
- const commonPlugins = pluginsContext.initPlugins
- ? pluginsContext.initPlugins(context)
- : [headingsPlugin(), listsPlugin(), quotePlugin(), linkPlugin(), markdownShortcutPlugin()];
-
- const toolbarPlugins = pluginsContext.initToolbarPlugins
- ? pluginsContext.initToolbarPlugins(context)
- : [
- ,
- ,
- ,
- ,
- ,
- ,
- ];
+ const plugins = [
+ headingsPlugin(),
+ listsPlugin(),
+ quotePlugin(),
+ linkPlugin(),
+ markdownShortcutPlugin(),
+ ];
- const plugins = readOnly
- ? commonPlugins
- : [
- ...commonPlugins,
- toolbarPlugin({
- toolbarContents: () => {
- return (
-
- {toolbarPlugins.map((Plugin, index) => (
- {Plugin}
- ))}
-
- );
- },
- }),
- ];
-
- return plugins;
- }, [pluginsContext.initPlugins, pluginsContext.initToolbarPlugins, readOnly, context]);
-
- const MDXEditorWrapper = pluginsContext.MarkdownEditorWrapper || S.MDXEditorWrapper;
+ if (!readOnly) {
+ plugins.push(
+ toolbarPlugin({
+ toolbarContents: () => {
+ return (
+
+
+
+
+
+
+
+
+ );
+ },
+ }),
+ );
+ }
return (
-
-
-
+
);
}
+
+function Separator() {
+ return ;
+}
diff --git a/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/MarkDownEditor/styles.ts b/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/MarkDownEditor/styles.ts
deleted file mode 100644
index a4026f40..00000000
--- a/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/MarkDownEditor/styles.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import styled from 'styled-components';
-
-export const S = {
- MDXEditorWrapper: styled.div`
- transition: all 0.2s;
-
- .mdxeditor {
- border: 1px solid ${({ theme }) => theme.neutralPalette.gray_5};
- border-radius: 8px;
- }
-
- .mdxeditor:hover {
- border-color: ${({ theme }) => theme.primary}cc;
- }
-
- .mdxeditor:focus-within {
- border-color: ${({ theme }) => theme.primary};
- box-shadow: 0 0 0 2px ${({ theme }) => theme.primary}0d;
- }
-
- .mdxeditor-toolbar {
- z-index: 0;
- position: unset;
- }
-
- .mdxeditor-popup-container {
- z-index: 1000;
- }
- `,
-};
diff --git a/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/index.tsx b/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/index.tsx
index 24265302..aa9ba6e6 100644
--- a/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/index.tsx
+++ b/src/components/BaseQuestionnaireResponseForm/widgets/MDEditorControl/index.tsx
@@ -3,21 +3,11 @@ import { QuestionItemProps } from 'sdc-qrf';
import { useFieldController } from 'src/components/BaseQuestionnaireResponseForm/hooks';
import { MarkDownEditor } from './MarkDownEditor';
-import { Form } from 'antd';
-export function MDEditorControl({ parentPath, questionItem, context }: QuestionItemProps) {
+export function MDEditorControl({ parentPath, questionItem }: QuestionItemProps) {
const { linkId } = questionItem;
const fieldName = [...parentPath, linkId, 0, 'value', 'string'];
- const { value, onChange, formItem } = useFieldController(fieldName, questionItem);
+ const { value, onChange } = useFieldController(fieldName, questionItem);
- return (
-
-
-
- );
+ return ;
}
diff --git a/src/components/DashboardCard/DashboardCard.styles.ts b/src/components/DashboardCard/DashboardCard.styles.ts
index 424b44a2..e77f6f09 100644
--- a/src/components/DashboardCard/DashboardCard.styles.ts
+++ b/src/components/DashboardCard/DashboardCard.styles.ts
@@ -6,7 +6,7 @@ export const S = {
`,
Card: styled.div`
border-radius: 10px;
- background-color: ${({ theme }) => theme.neutralPalette.gray_2};
+ background-color: ${({ theme }) => theme.neutralPalette.gray_1};
color: ${({ theme }) => theme.neutralPalette.gray_13};
border: 1px solid ${({ theme }) => theme.antdTheme?.colorBorderSecondary};
min-width: fit-content;
diff --git a/src/components/PageContainer/index.tsx b/src/components/PageContainer/index.tsx
deleted file mode 100644
index b5c7f03a..00000000
--- a/src/components/PageContainer/index.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { Col, Row } from 'antd';
-
-import { BasePageHeader, BasePageContent } from '../BaseLayout';
-import { Title } from '../Typography';
-
-interface PageContainerProps {
- title: string;
- titleRightContent?: React.ReactElement;
- headerContent?: React.ReactElement;
- content?: React.ReactElement;
-}
-
-export function PageContainer(props: PageContainerProps) {
- const { title, titleRightContent, headerContent, content } = props;
- return (
- <>
-
-
-
- {title}
-
- {titleRightContent}
-
- {headerContent}
-
- {content}
- >
- );
-}
diff --git a/src/components/PatientEncounter/index.tsx b/src/components/PatientEncounter/index.tsx
index c8c6a412..3b368111 100644
--- a/src/components/PatientEncounter/index.tsx
+++ b/src/components/PatientEncounter/index.tsx
@@ -1,4 +1,4 @@
-import { t, Trans } from '@lingui/macro';
+import { Trans } from '@lingui/macro';
import { Col, Row } from 'antd';
import { ColumnsType } from 'antd/lib/table';
import { Patient } from 'fhir/r4b';
@@ -11,7 +11,6 @@ import { EncounterData } from 'src/components/EncountersTable/types';
import { StatusBadge } from 'src/components/EncounterStatusBadge';
import { ModalNewEncounter } from 'src/components/ModalNewEncounter';
import { useEncounterList } from 'src/containers/EncounterList/hooks';
-import { usePatientHeaderLocationTitle } from 'src/containers/PatientDetails/PatientHeader/hooks';
import { formatPeriodDateTime } from 'src/utils/date';
import { renderHumanName } from 'src/utils/fhir';
@@ -76,8 +75,6 @@ export const PatientEncounter = ({ patient, searchParams, hideCreateButton }: Pr
...searchParams,
});
- usePatientHeaderLocationTitle({ title: t`Encounters` });
-
return (
<>
{hideCreateButton ? null : (
diff --git a/src/components/QuestionnaireResponseForm/index.tsx b/src/components/QuestionnaireResponseForm/index.tsx
index 0aa4f39e..b2f30f04 100644
--- a/src/components/QuestionnaireResponseForm/index.tsx
+++ b/src/components/QuestionnaireResponseForm/index.tsx
@@ -25,7 +25,7 @@ import { saveFHIRResource, updateFHIRResource } from 'src/services/fhir';
import { FormFooterComponentProps } from '../BaseQuestionnaireResponseForm/FormFooter';
import { Spinner } from '../Spinner';
-interface Props extends QuestionnaireResponseFormProps {
+export interface QRFProps extends QuestionnaireResponseFormProps {
onSuccess?: (response: QuestionnaireResponseFormSaveResponse) => void;
onFailure?: (error: any) => void;
readOnly?: boolean;
@@ -126,7 +126,7 @@ export function onFormResponse(props: {
}
}
-export function useQuestionnaireResponseForm(props: Props) {
+export function useQuestionnaireResponseForm(props: QRFProps) {
// TODO find what cause rerender and fix it
// remove this temporary hack
const memoizedProps = useMemo(() => props, [JSON.stringify(props)]);
@@ -152,7 +152,7 @@ export function useQuestionnaireResponseForm(props: Props) {
return { response, onSubmit, readOnly, onCancel };
}
-export function QuestionnaireResponseForm(props: Props) {
+export function QuestionnaireResponseForm(props: QRFProps) {
const { response, onSubmit, readOnly, onCancel } = useQuestionnaireResponseForm(props);
return (
diff --git a/src/components/ResourceTable/index.tsx b/src/components/ResourceTable/index.tsx
index a5aa4130..f349d171 100644
--- a/src/components/ResourceTable/index.tsx
+++ b/src/components/ResourceTable/index.tsx
@@ -33,7 +33,7 @@ interface ResourceTableProps extends ResourceTableHookProps<
export function useResourceTable(props: ResourceTableHookProps) {
const { resourceType, params = {} } = props;
const queryParameters = {
- _sort: ['-_lastUpdated', '_id'],
+ _sort: '-_lastUpdated',
...params,
};
diff --git a/src/components/SearchBar/SearchBar.styles.ts b/src/components/SearchBar/SearchBar.styles.ts
deleted file mode 100644
index 119c53ef..00000000
--- a/src/components/SearchBar/SearchBar.styles.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { Layout } from 'antd';
-import styled from 'styled-components';
-
-export const S = {
- Container: styled(Layout)`
- position: relative;
- padding: 16px;
- border-radius: 10px;
- background-color: ${({ theme }) => theme.primaryPalette.bcp_3};
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- gap: 16px 32px;
- flex-wrap: wrap;
-
- .ant-input-search,
- .ant-picker {
- width: 264px;
- }
- `,
-};
diff --git a/src/components/SearchBar/SearchBarColumn/ChoiceColumn/SelectChoiceColumn/index.tsx b/src/components/SearchBar/SearchBarColumn/ChoiceColumn/SelectChoiceColumn/index.tsx
index 6fb9b945..39e0fa52 100644
--- a/src/components/SearchBar/SearchBarColumn/ChoiceColumn/SelectChoiceColumn/index.tsx
+++ b/src/components/SearchBar/SearchBarColumn/ChoiceColumn/SelectChoiceColumn/index.tsx
@@ -1,5 +1,3 @@
-import { Col } from 'antd';
-
import { Select } from 'src/components/Select';
import { ValueSetOption } from 'src/services';
@@ -7,23 +5,23 @@ import { SearchBarColumnChoiceTypeProps } from '../../types';
import { useChoiceColumn } from '../hooks';
export function SelectChoiceColumn(props: SearchBarColumnChoiceTypeProps) {
- const { columnFilterValue } = props;
+ const { columnFilterValue, defaultOpen } = props;
const { options, placeholder, repeats } = columnFilterValue.column;
const { onSelect, getOptionLabel, isOptionSelected } = useChoiceColumn(props);
return (
-
-