Skip to content

Commit

Permalink
Make alibi closeable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Papel committed Dec 29, 2024
1 parent 48b64e9 commit 0810958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions client/src/components/TextAreaDropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { ReactElement, useEffect, useMemo, useState } from "react";
import React, { ReactElement, useEffect, useMemo, useState } from "react";
import StyledText from "./StyledText";
import { sanitizePlayerMessage } from "./ChatMessage";
import GAME_MANAGER, { replaceMentions } from "..";
import React from "react";
import { Button } from "./Button";
import Icon from "./Icon";
import translate from "../game/lang";
Expand All @@ -12,6 +11,7 @@ import DetailsSummary from "./DetailsSummary";
export function TextDropdownArea(props: Readonly<{
titleString: string,
savedText: string,
defaultOpen?: boolean,
open?: boolean,
dropdownArrow?: boolean,
onAdd?: () => void,
Expand Down Expand Up @@ -42,6 +42,7 @@ export function TextDropdownArea(props: Readonly<{
<DetailsSummary
className="text-area-dropdown"
dropdownArrow={props.dropdownArrow}
defaultOpen={props.defaultOpen}
open={props.open}
summary={<TextDropdownLabel
titleString={props.titleString}
Expand Down
3 changes: 1 addition & 2 deletions client/src/menu/game/gameScreenContent/WillMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ export default function WillMenu(): ReactElement {
<section>
<TextDropdownArea
titleString={translate("menu.will.will")}
open={true}
dropdownArrow={false}
defaultOpen={true}
savedText={alibi}
cantPost={cantPost}
onSave={(text) => {
Expand Down

0 comments on commit 0810958

Please sign in to comment.