mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00

* enhancement: improved alerts component contrast enhancement: simplified and improved radio switch group look fix: fixed inconsistent spacing in input components (there's still some work left to be done) fix: made slideover panel display on full width on mobile devices enhancement: made forms more accessible to mobile users, adapter changes in accordance with the previous input components fix fix: fixed misspelling in NotificationForms filename chore: cleaned up code fix: made filter table top edges less round and improved look fix: fixed a bug where when a modal/slideover component was opened, a 1px white bar would be shown in one of the modal parent elements (for the fix see L89 in screens/settings/DwonloadClient.tsx) enhancement: improved responsiveness for irc network list * Fixed 2 small comma warnings from ESLint Co-authored-by: anonymous <anonymous>
19 lines
440 B
TypeScript
19 lines
440 B
TypeScript
import { FC } from "react";
|
|
|
|
interface DebugProps {
|
|
values: unknown;
|
|
}
|
|
|
|
const DEBUG: FC<DebugProps> = ({ values }) => {
|
|
if (process.env.NODE_ENV !== "development") {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<div className="w-full p-2 flex flex-col mt-6 bg-gray-100 dark:bg-gray-900">
|
|
<pre className="dark:text-gray-400 break-all whitespace-pre-wrap">{JSON.stringify(values, null, 2)}</pre>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default DEBUG;
|