remove useless console.log

This commit is contained in:
MathieuG-P
2022-10-04 01:49:13 +02:00
parent 9d2ec1166e
commit 4702f67767
4 changed files with 4 additions and 9 deletions
@@ -6,9 +6,7 @@ type Props = {className?: string, nbClickToShow?: number, children?: JSX.Element
export function SpoilerClick({className, children, nbClickToShow = 5}: Props) {
const [remainingClicks, setRemainingClicks] = useState(nbClickToShow);
const [translateY, setTranslateY] = useState("100%")
console.log(translateY);
const [translateY, setTranslateY] = useState("100%");
const handleClicks = () => {
if(remainingClicks - 1 > 0){ setRemainingClicks(nb => nb - 1); }
@@ -6,8 +6,7 @@ import { getCorrectTextColor } from "renderer/helpers/correct-text-color"
type Props = {className?:string, checked?: boolean, onChange?: (val: boolean) => void, disabled?: boolean}
export function BsmCheckbox({className, checked, onChange, disabled} : Props) {
if(checked){ console.log(checked) }
const checkedColor = useThemeColor("first-color");
const iconColor = getCorrectTextColor(checkedColor);
@@ -114,7 +114,7 @@ export class BsDownloaderService{
this.progressBarService.hide(true);
this.resetDownload();
if(res.success && isFirstCall){ this.notificationService.notifySuccess({title: `notifications.bs-download.success.titles.${isVerification ? "verification-finished" : "download-success"}`, duration: 3000}); }
else if(res.data && isFirstCall){ console.log("aaaa"); this.notificationService.notifyError({title: `notifications.types.error`, desc: `notifications.bs-download.errors.msg.${res.data}`, duration: 3000}); }
else if(res.data && isFirstCall){ this.notificationService.notifyError({title: `notifications.types.error`, desc: `notifications.bs-download.errors.msg.${res.data}`, duration: 3000}); }
return res;
}
+1 -3
View File
@@ -11,9 +11,7 @@ export class PageStateService {
return PageStateService.instance;
}
private constructor(){
this.state$.subscribe(a => console.log(a))
}
private constructor(){}
public setState(state: unknown){
this._state$.next(state);