diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss index 4fb344e4da..b4493ac574 100644 --- a/stylesheets/_modules.scss +++ b/stylesheets/_modules.scss @@ -7174,14 +7174,6 @@ button.module-image__border-overlay:focus { // Module: Chat Session Refreshed Dialog -.module-chat-session-refreshed-dialog { - @include light-theme { - background-color: $color-white; - } - @include dark-theme { - background-color: $color-gray-95; - } -} .module-chat-session-refreshed-dialog__image { text-align: center; } @@ -7190,24 +7182,6 @@ button.module-image__border-overlay:focus { margin-top: 10px; margin-bottom: 3px; } -.module-chat-session-refreshed-dialog__buttons { - text-align: end; - margin-top: 20px; - padding: 3px; -} -.module-chat-session-refreshed-dialog__button { - @include font-body-1-bold; - @include button-reset; - @include button-primary; - - border-radius: 4px; - padding-block: 7px; - padding-inline: 14px; - margin-inline-start: 12px; -} -.module-chat-session-refreshed-dialog__button--secondary { - @include button-secondary; -} // Module: Delivery Issue Dialog diff --git a/ts/components/conversation/ChatSessionRefreshedDialog.tsx b/ts/components/conversation/ChatSessionRefreshedDialog.tsx index 2158501191..492896b617 100644 --- a/ts/components/conversation/ChatSessionRefreshedDialog.tsx +++ b/ts/components/conversation/ChatSessionRefreshedDialog.tsx @@ -2,13 +2,13 @@ // SPDX-License-Identifier: AGPL-3.0-only import * as React from 'react'; -import classNames from 'classnames'; import { Modal } from '../Modal'; import { useRestoreFocus } from '../../hooks/useRestoreFocus'; import type { LocalizerType } from '../../types/Util'; +import { Button, ButtonSize, ButtonVariant } from '../Button'; export type PropsType = { i18n: LocalizerType; @@ -24,14 +24,35 @@ export function ChatSessionRefreshedDialog( // Focus first button after initial render, restore focus on teardown const [focusRef] = useRestoreFocus(); + const footer = ( + <> + + + + ); return ( -
+ <>
{i18n('icu:ChatRefresh--summary')}
-
- - -
-
+
); }