mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
Cleanup logging
This commit is contained in:
parent
cac74272f2
commit
91c318f36a
|
@ -9,7 +9,7 @@ interface BackendErrorProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
function DescribeError(error: ErrorInfo) {
|
function DescribeError(error: ErrorInfo) {
|
||||||
console.log(error);
|
reportError(error);
|
||||||
if (!error) {
|
if (!error) {
|
||||||
return <p>Ошибки отсутствуют</p>;
|
return <p>Ошибки отсутствуют</p>;
|
||||||
} else if (typeof error === 'string') {
|
} else if (typeof error === 'string') {
|
||||||
|
|
|
@ -7,7 +7,6 @@ interface EmbedYoutubeProps {
|
||||||
function EmbedYoutube({ videoID, pxHeight, pxWidth }: EmbedYoutubeProps) {
|
function EmbedYoutube({ videoID, pxHeight, pxWidth }: EmbedYoutubeProps) {
|
||||||
if (!pxWidth) {
|
if (!pxWidth) {
|
||||||
pxWidth = pxHeight * 16 / 9;
|
pxWidth = pxHeight * 16 / 9;
|
||||||
console.log(pxWidth);
|
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { type FallbackProps } from 'react-error-boundary';
|
||||||
import Button from './Common/Button';
|
import Button from './Common/Button';
|
||||||
|
|
||||||
function ErrorFallback({ error, resetErrorBoundary }: FallbackProps) {
|
function ErrorFallback({ error, resetErrorBoundary }: FallbackProps) {
|
||||||
console.log(error);
|
reportError(error);
|
||||||
return (
|
return (
|
||||||
<div className='flex flex-col items-center antialiased clr-app' role='alert'>
|
<div className='flex flex-col items-center antialiased clr-app' role='alert'>
|
||||||
<h1 className='text-lg font-semibold'>Something went wrong!</h1>
|
<h1 className='text-lg font-semibold'>Something went wrong!</h1>
|
||||||
|
|
|
@ -9,7 +9,6 @@ import { getCstExpressionPrefix } from '../utils/staticUI';
|
||||||
const LOGIC_TYPIIFCATION = 'LOGIC';
|
const LOGIC_TYPIIFCATION = 'LOGIC';
|
||||||
|
|
||||||
function checkTypeConsistency(type: CstType, typification: string, args: IFunctionArg[]): boolean {
|
function checkTypeConsistency(type: CstType, typification: string, args: IFunctionArg[]): boolean {
|
||||||
console.log(typification)
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case CstType.BASE:
|
case CstType.BASE:
|
||||||
case CstType.CONSTANT:
|
case CstType.CONSTANT:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user