aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/GenericNotice.tsx16
-rw-r--r--src/render/RectangleTooltip.tsx24
2 files changed, 20 insertions, 20 deletions
diff --git a/src/render/GenericNotice.tsx b/src/render/GenericNotice.tsx
index 4e01bcac..f3cc7a2e 100644
--- a/src/render/GenericNotice.tsx
+++ b/src/render/GenericNotice.tsx
@@ -9,17 +9,17 @@ import { ButtonListener, ContentContainer } from "../types";
import NoticeTextSelectionComponent from "../components/NoticeTextSectionComponent";
export interface TextBox {
- icon: string,
- text: string
+ icon: string;
+ text: string;
}
export interface NoticeOptions {
- title: string,
- referenceNode?: HTMLElement,
- textBoxes?: TextBox[],
- buttons?: ButtonListener[],
- fadeIn?: boolean,
- timed?: boolean
+ title: string;
+ referenceNode?: HTMLElement;
+ textBoxes?: TextBox[];
+ buttons?: ButtonListener[];
+ fadeIn?: boolean;
+ timed?: boolean;
style?: React.CSSProperties;
extraClass?: string;
maxCountdownTime?: () => number;
diff --git a/src/render/RectangleTooltip.tsx b/src/render/RectangleTooltip.tsx
index 06cbd251..1b357fa8 100644
--- a/src/render/RectangleTooltip.tsx
+++ b/src/render/RectangleTooltip.tsx
@@ -2,18 +2,18 @@ import * as React from "react";
import { createRoot, Root } from 'react-dom/client';
export interface RectangleTooltipProps {
- text: string,
- link?: string,
- referenceNode: HTMLElement,
- prependElement?: HTMLElement, // Element to append before
- bottomOffset?: string,
- leftOffset?: string,
- timeout?: number,
- htmlId?: string,
- maxHeight?: string,
- maxWidth?: string,
- backgroundColor?: string,
- fontSize?: string,
+ text: string;
+ link?: string;
+ referenceNode: HTMLElement;
+ prependElement?: HTMLElement; // Element to append before
+ bottomOffset?: string;
+ leftOffset?: string;
+ timeout?: number;
+ htmlId?: string;
+ maxHeight?: string;
+ maxWidth?: string;
+ backgroundColor?: string;
+ fontSize?: string;
buttonFunction?: () => void;
}