Skip to content

Commit

Permalink
Merge pull request #429 from beda-software/feat/add-customizations
Browse files Browse the repository at this point in the history
Feat/add customizations
  • Loading branch information
pavlushkin authored Jan 17, 2025
2 parents bff5b0f + 534d4e8 commit 6c1d4fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/BaseLayout/Sidebar/SidebarBottom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ interface Props extends React.HTMLAttributes<HTMLDivElement> {
collapsed: boolean;
toggleCollapsed?: () => void;
onItemClick?: () => void;
enableLocaleSwitcher?: boolean;
}

export function SidebarBottom(props: Props) {
const { collapsed, toggleCollapsed, onItemClick, ...other } = props;
const { collapsed, toggleCollapsed, onItemClick, enableLocaleSwitcher = true, ...other } = props;
const appToken = getToken();
const isAnonymousUser = !appToken;

Expand All @@ -32,7 +33,7 @@ export function SidebarBottom(props: Props) {
{...other}
>
<S.Divider $hidden={collapsed} />
<LocaleSwitcher onItemClick={onItemClick} />
{enableLocaleSwitcher && <LocaleSwitcher onItemClick={onItemClick} />}
{!isAnonymousUser ? (
<>
<S.Divider $hidden={collapsed} />
Expand Down
1 change: 1 addition & 0 deletions src/components/QuestionnaireResponseForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export interface QRFProps extends QuestionnaireResponseFormProps {
FormFooterComponent?: React.ElementType<FormFooterComponentProps>;
saveButtonTitle?: React.ReactNode;
cancelButtonTitle?: React.ReactNode;
autoSave?: boolean;
}

export const saveQuestionnaireResponseDraft = async (
Expand Down

0 comments on commit 6c1d4fd

Please sign in to comment.