mirror of
https://github.com/langgenius/dify-conversation.git
synced 2026-07-01 18:25:52 -04:00
feat: update prettier
This commit is contained in:
+3
-2
@@ -1,12 +1,13 @@
|
||||
const config = {
|
||||
semi: false,
|
||||
tabWidth: 2,
|
||||
printWidth: 120,
|
||||
printWidth: 80,
|
||||
singleQuote: true,
|
||||
jsxSingleQuote: true,
|
||||
trailingComma: 'none',
|
||||
arrowParens: 'always',
|
||||
endOfLine: 'auto'
|
||||
endOfLine: 'auto',
|
||||
noBracketSpacing: true
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
|
||||
@@ -10,9 +10,18 @@ interface ChatBubbleProps {
|
||||
mine?: boolean
|
||||
}
|
||||
|
||||
const ChatBubble: FC<ChatBubbleProps> = ({ opening_statement, content, mine = false }) => {
|
||||
const ChatBubble: FC<ChatBubbleProps> = ({
|
||||
opening_statement,
|
||||
content,
|
||||
mine = false
|
||||
}) => {
|
||||
return (
|
||||
<div className={cn(styles.bubble, mine ? styles.bubble_mine : styles.bubble_other)}>
|
||||
<div
|
||||
className={cn(
|
||||
styles.bubble,
|
||||
mine ? styles.bubble_mine : styles.bubble_other
|
||||
)}
|
||||
>
|
||||
{opening_statement && <div>{opening_statement}</div>}
|
||||
<div>{content}</div>
|
||||
<div></div>
|
||||
|
||||
Reference in New Issue
Block a user