Remove console noise
This commit is contained in:
@@ -21,7 +21,7 @@ const SmallLoadingPing = (
|
|||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
||||||
const BigLoadingPing = () => (
|
export const BigLoadingPing = (
|
||||||
<div className="inset-0 absolute flex items-center justify-center bg-ch-gray-800">
|
<div className="inset-0 absolute flex items-center justify-center bg-ch-gray-800">
|
||||||
<div className="h-16 w-16 bg-pink-600 rounded-full animate-ping"></div>
|
<div className="h-16 w-16 bg-pink-600 rounded-full animate-ping"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ const IdeViewer = ({ Loading }) => {
|
|||||||
const indigo900 = '#312E81'
|
const indigo900 = '#312E81'
|
||||||
return (
|
return (
|
||||||
<div className="relative h-full bg-ch-gray-800">
|
<div className="relative h-full bg-ch-gray-800">
|
||||||
{state.isLoading && <Loading />}
|
{state.isLoading && Loading}
|
||||||
{image && (
|
{image && (
|
||||||
<div
|
<div
|
||||||
className={`absolute inset-0 transition-opacity duration-500 ${
|
className={`absolute inset-0 transition-opacity duration-500 ${
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import Popover from '@material-ui/core/Popover'
|
|||||||
import useUser from 'src/helpers/hooks/useUser'
|
import useUser from 'src/helpers/hooks/useUser'
|
||||||
import ImageUploader from 'src/components/ImageUploader'
|
import ImageUploader from 'src/components/ImageUploader'
|
||||||
import LoginModal from 'src/components/LoginModal'
|
import LoginModal from 'src/components/LoginModal'
|
||||||
|
import Gravatar from 'src/components//Gravatar/Gravatar'
|
||||||
|
|
||||||
const ProfileSlashLogin = () => {
|
const ProfileSlashLogin = () => {
|
||||||
const { logOut, isAuthenticated, currentUser, client } = useAuth()
|
const { logOut, isAuthenticated, currentUser, client } = useAuth()
|
||||||
@@ -43,21 +44,14 @@ const ProfileSlashLogin = () => {
|
|||||||
<div className="flex-shrink-0">
|
<div className="flex-shrink-0">
|
||||||
{isAuthenticated ? (
|
{isAuthenticated ? (
|
||||||
<div
|
<div
|
||||||
className="h-8 w-8 border-2 rounded-full border-gray-200 relative text-indigo-200"
|
className="h-8 w-8 relative text-indigo-200"
|
||||||
aria-describedby={popoverId}
|
aria-describedby={popoverId}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
className="absolute inset-0 w-full h-full"
|
className="absolute inset-0 w-full h-full"
|
||||||
onClick={togglePopover}
|
onClick={togglePopover}
|
||||||
>
|
>
|
||||||
{!loading && (
|
{!loading && <Gravatar image={user?.image} />}
|
||||||
<ImageUploader
|
|
||||||
className="rounded-full object-cover"
|
|
||||||
aspectRatio={1}
|
|
||||||
imageUrl={user?.image}
|
|
||||||
width={80}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -1,12 +1,7 @@
|
|||||||
import { lazy, Suspense } from 'react'
|
import { lazy, Suspense } from 'react'
|
||||||
const IdeViewer = lazy(() => import('src/components/IdeViewer/IdeViewer'))
|
const IdeViewer = lazy(() => import('src/components/IdeViewer/IdeViewer'))
|
||||||
import { use3dViewerResize } from 'src/helpers/hooks/use3dViewerResize'
|
import { use3dViewerResize } from 'src/helpers/hooks/use3dViewerResize'
|
||||||
|
import { BigLoadingPing } from 'src/components/IdeContainer/IdeContainer'
|
||||||
const BigLoadingPing = () => (
|
|
||||||
<div className="inset-0 absolute flex items-center justify-center bg-ch-gray-800">
|
|
||||||
<div className="h-16 w-16 bg-pink-600 rounded-full animate-ping"></div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
|
|
||||||
const ProfileViewer = () => {
|
const ProfileViewer = () => {
|
||||||
const { viewerDomRef } = use3dViewerResize()
|
const { viewerDomRef } = use3dViewerResize()
|
||||||
|
|||||||
Reference in New Issue
Block a user