mirror of
https://github.com/Radarr/Radarr
synced 2026-01-26 17:33:13 +01:00
(cherry picked from commit e1cbc4a78249881de96160739a50c0a399ea4313) Closes #10378 Fixed: Links tooltip closing too quickly (cherry picked from commit 0b9a212f33381d07ff67e2453753aaab64cc8041) Closes #10400 Fixed: Movie links not opening on iOS (cherry picked from commit f20ac9dc348e1f5ded635f12ab925d982b1b8957) Closes #10425
36 lines
1 KiB
TypeScript
36 lines
1 KiB
TypeScript
import React from 'react';
|
|
import styles from './LoadingMessage.css';
|
|
|
|
const messages = [
|
|
'Downloading more RAM',
|
|
'Now in Technicolor',
|
|
'Previously on Radarr...',
|
|
'Bleep Bloop.',
|
|
'Locating the required gigapixels to render...',
|
|
'Spinning up the hamster wheel...',
|
|
"At least you're not on hold",
|
|
'Hum something loud while others stare',
|
|
'Loading humorous message... Please Wait',
|
|
"I could've been faster in Python",
|
|
"Don't forget to rewind your movies",
|
|
'Congratulations! You are the 1000th visitor.',
|
|
"HELP! I'm being held hostage and forced to write these stupid lines!",
|
|
'RE-calibrating the internet...',
|
|
"I'll be here all week",
|
|
"Don't forget to tip your waitress",
|
|
'Apply directly to the forehead',
|
|
'Loading Battlestation',
|
|
];
|
|
|
|
let message: string | null = null;
|
|
|
|
function LoadingMessage() {
|
|
if (!message) {
|
|
const index = Math.floor(Math.random() * messages.length);
|
|
message = messages[index];
|
|
}
|
|
|
|
return <div className={styles.loadingMessage}>{message}</div>;
|
|
}
|
|
|
|
export default LoadingMessage;
|