Add deprecation warning for CascadeStudio

https://github.com/Irev-Dev/cadhub/discussions/261
This commit is contained in:
Kurt Hutten
2021-07-02 20:38:05 +10:00
parent b01c08b0d2
commit 2e3f9b9e25
2 changed files with 14 additions and 4 deletions

View File

@@ -18,10 +18,6 @@ const NavPlusButton: React.FC = () => {
ideType: 'openScad',
},
{ name: 'CadQuery', sub: 'beta', ideType: 'cadQuery' },
{
name: 'CascadeStudio',
sub: 'soon to be deprecated',
},
].map(({ name, sub, ideType }) => (
<li
key={name}

View File

@@ -12,6 +12,7 @@ import Button from 'src/components/Button'
import PartReactionsCell from '../PartReactionsCell'
import { countEmotes } from 'src/helpers/emote'
import { getActiveClasses } from 'get-active-classes'
import OutBound from 'src/components/OutBound/OutBound'
const PartProfile = ({
userPart,
@@ -178,6 +179,19 @@ const PartProfile = ({
partTitle={input?.title}
isInvalid={isInvalid}
/>
<div>
<h3 className="text-center p-2 bg-pink-200 rounded-md mt-4 shadow-md">
Warning, this part was made with CascadeStudio which is being
deprecated on CadHub.{' '}
<OutBound
className="text-gray-600 underline"
to="https://github.com/Irev-Dev/cadhub/discussions/261"
>
Click here
</OutBound>{' '}
for more information
</h3>
</div>
{!isEditable && part?.id && (
<ImageUploader
className="rounded-lg shadow-md border-2 border-gray-200 border-solid mt-8"