diff --git a/app/web/src/components/DelayedPingAnimation/DelayedPingAnimation.tsx b/app/web/src/components/DelayedPingAnimation/DelayedPingAnimation.tsx index b5ed291..f692591 100644 --- a/app/web/src/components/DelayedPingAnimation/DelayedPingAnimation.tsx +++ b/app/web/src/components/DelayedPingAnimation/DelayedPingAnimation.tsx @@ -21,7 +21,7 @@ const DelayedPingAnimation = ({ if (showLoading && isLoading) return ( -
+
) diff --git a/app/web/src/components/IdeContainer/IdeContainer.tsx b/app/web/src/components/IdeContainer/IdeContainer.tsx index 187ad89..817528e 100644 --- a/app/web/src/components/IdeContainer/IdeContainer.tsx +++ b/app/web/src/components/IdeContainer/IdeContainer.tsx @@ -22,7 +22,7 @@ const SmallLoadingPing = ( ) export const BigLoadingPing = ( -
+
) diff --git a/app/web/src/components/IdeViewer/IdeViewer.tsx b/app/web/src/components/IdeViewer/IdeViewer.tsx index 9bffb4d..9fd313a 100644 --- a/app/web/src/components/IdeViewer/IdeViewer.tsx +++ b/app/web/src/components/IdeViewer/IdeViewer.tsx @@ -178,7 +178,6 @@ const IdeViewer = ({ Loading }) => { : 1.2 return (
- {state.isLoading && Loading} {image && (
{ - const [shouldShowConstructionMessage, setShouldShowConstructionMessage] = - useState(true) const { state, project } = useIdeContext() const handleRender = useRender() const saveCode = useSaveCode() @@ -34,26 +32,6 @@ const IdeWrapper = ({ cadPackage }: Props) => { - {shouldShowConstructionMessage && ( -
-
- We're still working on this. Since you're here, have a look what{' '} - - we've got planned - - . -
- -
- )}
diff --git a/app/web/src/components/OpenscadStaticImageMessage/OpenscadStaticImageMessage.tsx b/app/web/src/components/OpenscadStaticImageMessage/OpenscadStaticImageMessage.tsx new file mode 100644 index 0000000..a52a579 --- /dev/null +++ b/app/web/src/components/OpenscadStaticImageMessage/OpenscadStaticImageMessage.tsx @@ -0,0 +1,14 @@ +import OutBound from 'src/components/OutBound/OutBound' +import { useIdeContext } from 'src/helpers/hooks/useIdeContext' + +const OpenscadStaticImageMessage = () => { + const { state } = useIdeContext() + if (state.ideType !== 'openscad' || state.objectData?.type !== 'png') { + return null + } + return ( + Why reload each camera move? + ) +} + +export default OpenscadStaticImageMessage diff --git a/app/web/src/components/PanelToolbar/PanelToolbar.tsx b/app/web/src/components/PanelToolbar/PanelToolbar.tsx index a16944a..3691b9e 100644 --- a/app/web/src/components/PanelToolbar/PanelToolbar.tsx +++ b/app/web/src/components/PanelToolbar/PanelToolbar.tsx @@ -1,12 +1,13 @@ import { useContext } from 'react' import { MosaicWindowContext } from 'react-mosaic-component' import Svg from 'src/components/Svg/Svg' +import OpenscadStaticImageMessage from 'src/components/OpenscadStaticImageMessage/OpenscadStaticImageMessage' const PanelToolbar = ({ panelName, showTopGradient, }: { - panelName: string + panelName: 'Viewer' | 'Console' showTopGradient?: boolean }) => { const { mosaicWindowActions } = useContext(MosaicWindowContext) @@ -16,6 +17,7 @@ const PanelToolbar = ({
)}
+ {panelName === 'Viewer' && }