Skip to content

Commit

Permalink
Merge pull request #400 from rebeccaalpert/checkbox
Browse files Browse the repository at this point in the history
chore(docs): Change id on history drawer button reversal checkbox
  • Loading branch information
nicolethoen authored Jan 10, 2025
2 parents b8b7509 + 3cceb58 commit fd79b8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const initialConversations: { [key: string]: Conversation[] } = {

export const ChatbotHeaderTitleDemo: React.FunctionComponent = () => {
const [isOpen, setIsOpen] = React.useState(true);
const [isButtonOrderReversed, setIsbuttonOrderReversed] = React.useState(false);
const [isButtonOrderReversed, setIsButtonOrderReversed] = React.useState(false);
const [conversations, setConversations] = React.useState<Conversation[] | { [key: string]: Conversation[] }>(
initialConversations
);
Expand Down Expand Up @@ -70,7 +70,7 @@ export const ChatbotHeaderTitleDemo: React.FunctionComponent = () => {
<Checkbox
label="Reverse action buttons"
isChecked={isButtonOrderReversed}
onChange={() => setIsbuttonOrderReversed(!isButtonOrderReversed)}
onChange={() => setIsButtonOrderReversed(!isButtonOrderReversed)}
id="drawer-actions-visible"
name="drawer-actions-visible"
></Checkbox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const initialConversations: Conversation[] = [

export const ChatbotHeaderTitleDemo: React.FunctionComponent = () => {
const [isOpen, setIsOpen] = React.useState(true);
const [isButtonOrderReversed, setIsbuttonOrderReversed] = React.useState(false);
const [isButtonOrderReversed, setIsButtonOrderReversed] = React.useState(false);
const [conversations, setConversations] = React.useState<Conversation[] | { [key: string]: Conversation[] }>(
initialConversations
);
Expand All @@ -41,15 +41,15 @@ export const ChatbotHeaderTitleDemo: React.FunctionComponent = () => {
setIsOpen(!isOpen);
setConversations(initialConversations);
}}
id="drawer-visible"
name="drawer-visible"
id="navigation-drawer-visible"
name="navigation-drawer-visible"
/>
<Checkbox
label="Reverse action buttons"
isChecked={isButtonOrderReversed}
onChange={() => setIsbuttonOrderReversed(!isButtonOrderReversed)}
id="drawer-actions-visible"
name="drawer-actions-visible"
onChange={() => setIsButtonOrderReversed(!isButtonOrderReversed)}
id="navigation-drawer-actions-visible"
name="navigation-drawer-actions-visible"
></Checkbox>
<ChatbotConversationHistoryNav
displayMode={displayMode}
Expand Down

0 comments on commit fd79b8d

Please sign in to comment.