Skip to content

Commit ddb2e5e

Browse files
committed
fix: override css
1 parent f979439 commit ddb2e5e

File tree

8 files changed

+11
-6
lines changed

8 files changed

+11
-6
lines changed

client/src/components/pages/flow-detail/node-dialog/message.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ export const MessageDialogContent = () => {
145145
</div>
146146
{messageType !== EMessageTypes.LIST_CARD && (
147147
<InputButtons
148-
defaultValue={
149-
selectedNode?.data?.contents?.[currentLang]?.buttons || []
150-
}
148+
defaultValue={{
149+
buttons: selectedNode?.data?.contents?.[currentLang]?.buttons || [],
150+
}}
151151
onChange={({ buttons }) => {
152152
if (!selectedNode) return
153153

client/src/components/pages/flows/flow-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const FlowItem = ({ flow }: Props) => {
4242
className={buttonVariants({
4343
variant: 'outline',
4444
className:
45-
'!p-4 h-[unset] hover:border-primary hover:ring-primary hover:ring-1 flex-1',
45+
'!p-4 !h-[unset] hover:border-primary hover:ring-primary hover:ring-1 flex-1',
4646
})}
4747
>
4848
<h3>{flow.name}</h3>

client/src/components/ui/input-buttons.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const InputButtons = ({
3232
defaultValue,
3333
types = ['url', 'postback'],
3434
}: Props) => {
35+
console.log(defaultValue?.buttons)
3536
const { t } = useTranslation(['forms', 'common'])
3637
const schema = useButtonsSchema()
3738
const form = useForm<TButtons>({

client/src/main.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { SToaster } from '@/components/ui'
22
import '@/styles/index.css'
33
import { QueryClientProvider } from '@tanstack/react-query'
4-
import 'dialogue-chatbox/dist-components/style.css'
54
import { createRoot } from 'react-dom/client'
65
import { I18nextProvider } from 'react-i18next'
76
import { RouterProvider } from 'react-router-dom'

client/src/pages/flow-detail.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useParams } from 'react-router-dom'
55

66
import { useUpdateChannelForTest } from '@/hooks/channel'
77
import '@/styles/react-flow.css'
8+
89
import { useEffect } from 'react'
910

1011
const FlowDetail = () => {

client/src/styles/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import 'dialogue-chatbox/dist-components/style.css';
2+
13
@tailwind base;
24
@tailwind components;
35
@tailwind utilities;

server/src/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export class App {
7878
'http://localhost:5173',
7979
'http://localhost:3000',
8080
'http://localhost:4173',
81+
'http://localhost:5174',
82+
'http://localhost:5175',
8183
],
8284
credentials: CREDENTIALS,
8385
}),

server/src/services/channels.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class ChannelService {
213213
like(channels.contactId, `%${paging.q || ''}%`),
214214
eq(channels.deleted, false),
215215
eq(channels.userId, userId),
216-
ne(channels.contactId, `${TEST_YOUR_BOT_CHANNEL}-${userId}`),
216+
ne(channels.contactId, `${TEST_YOUR_BOT_CHANNEL}${userId}`),
217217
),
218218
)
219219
.innerJoin(channelTypes, eq(channels.channelTypeId, channelTypes.id))

0 commit comments

Comments
 (0)