Skip to content

Commit

Permalink
Use InlineSpinner instead of a loading text.
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Nov 20, 2024
1 parent 001b1d1 commit 7ee37f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/views/room_settings/UrlPreviewSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Please see LICENSE files in the repository root for full details.

import React, { ReactNode, JSX } from "react";
import { Room } from "matrix-js-sdk/src/matrix";
import { InlineSpinner } from "@vector-im/compound-web";

import { _t } from "../../../languageHandler";
import SettingsStore from "../../../settings/SettingsStore";
Expand Down Expand Up @@ -46,7 +47,7 @@ export function UrlPreviewSettings({ room }: UrlPreviewSettingsProps): JSX.Eleme
description={!isLoading && <Description isEncrypted={isEncrypted} />}
>
{isLoading ? (
_t("common|loading")
<InlineSpinner />
) : (
<>
<PreviewsForRoom isEncrypted={isEncrypted} roomId={roomId} />
Expand Down

0 comments on commit 7ee37f8

Please sign in to comment.