Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat iframe revert #2737

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const CaseCallToActionLegacy: FunctionComponent<ICaseCallToActionLegacyPr
<DialogFooter>
<DialogClose asChild>
<Button
className={ctw(`gap-x-2`, {
className={ctw(`gap-x-2 !bg-foreground`, {
loading: isLoadingRevisionCase,
})}
disabled={isLoadingRevisionCase}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ export const useKycBlock = ({
}}
disabled={isDisabled}
size={'wide'}
variant={'success'}
className={ctw({
'!bg-success': !isDisabled,
})}
>
Approve
</MotionButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const SubmitSection = ({ uiSchema }: SubmitButtonProps) => {
<Label htmlFor="add_more_switch">Add more</Label>
</div>
{!norender && (
<Button type="submit" disabled={disabled}>
<Button className={'!bg-foreground'} type="submit" disabled={disabled}>
Add Case
</Button>
)}
Expand Down
13 changes: 1 addition & 12 deletions apps/backoffice-v2/src/pages/Root/Root.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { ServerDownLayout } from './ServerDown.layout';
import { useCustomerQuery } from '@/domains/customer/hook/queries/useCustomerQuery/useCustomerQuery';
import { FullScreenLoader } from '@/common/components/molecules/FullScreenLoader/FullScreenLoader';
import Chatbot from '@/domains/chat/chatbot-opengpt';
import { ctw } from '@/common/utils/ctw/ctw';
import { RenderChildrenInIFrame } from '@/common/components/organisms/RenderChildrenInIFrame/RenderChildrenInIFrame';

const ReactQueryDevtools = lazy(() =>
process.env.NODE_ENV !== 'production'
Expand All @@ -31,16 +29,7 @@ const ChatbotLayout: FunctionComponent = () => {
return null;
}

return (
<RenderChildrenInIFrame
className={ctw('fixed bottom-right-0', {
'h-[700px] w-[400px]': isWebchatOpen,
'd-[80px]': !isWebchatOpen,
})}
>
<Chatbot isWebchatOpen={isWebchatOpen} toggleIsWebchatOpen={toggleIsWebchatOpen} />
</RenderChildrenInIFrame>
);
return <Chatbot isWebchatOpen={isWebchatOpen} toggleIsWebchatOpen={toggleIsWebchatOpen} />;
};

export const Root: FunctionComponent = () => {
Expand Down
2 changes: 1 addition & 1 deletion services/workflows-service/prisma/data-migrations
Loading