Skip to content

Commit 5845283

Browse files
authored
fix(input-bar): remove compact variant mention from prop docs (#3334)
* chore(message): remove compact variant mention in MessageActions spec * fix(input-bar): remove compact variant mention in props * chore(input-bar): changeset
1 parent cb31ce6 commit 5845283

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.changeset/shaggy-points-start.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@lg-chat/input-bar': patch
3+
---
4+
5+
Update tsdocs for `errorMessage` and `state` props

chat/input-bar/src/shared.types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ export type State = (typeof State)[keyof typeof State];
1010
export interface SharedInputBarProps {
1111
/**
1212
* Custom error message to display when `state='error'`
13-
* @remarks This prop is only considered when the parent `LeafyGreenChatProvider` has `variant="compact"`.
1413
*/
1514
errorMessage?: ReactNode;
1615

1716
/**
1817
* The current state of the InputBar. This can be `'unset'`, `'error'`, or `'loading'`
19-
* @remarks This prop is only considered when the parent `LeafyGreenChatProvider` has `variant="compact"`.
2018
*/
2119
state?: State;
2220
}

chat/message/src/MessageActions/MessageActions.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('packages/message-actions', () => {
6464
});
6565

6666
describe('copy button', () => {
67-
test('renders copy button in compact mode by default', () => {
67+
test('renders copy button', () => {
6868
renderMessageActions();
6969

7070
expect(

0 commit comments

Comments
 (0)