Skip to content

Commit

Permalink
Add Tact version to build project description
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulyadav-57 committed May 4, 2024
1 parent e1c7835 commit c771fd4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/components/workspace/BuildProject/BuildProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import s from './BuildProject.module.scss';
import AppIcon from '@/components/ui/icon';
import { useSettingAction } from '@/hooks/setting.hooks';
import { useForm } from 'antd/lib/form/Form';
import packageJson from 'package.json';
import {
AddressInput,
AmountInput,
Expand Down Expand Up @@ -109,6 +110,10 @@ const BuildProject: FC<Props> = ({
const connectedWalletAddress = useTonAddress();

const { sandboxBlockchain } = globalWorkspace;
const tactVersion = packageJson.dependencies['@tact-lang/compiler'].replace(
'^',
''
);

const { Option } = Select;
const [deployForm] = useForm();
Expand Down Expand Up @@ -666,9 +671,14 @@ const BuildProject: FC<Props> = ({
description={`- Select a contract to build <br />
${
isAutoBuildAndDeployEnabled()
? '- Auto-build and deploy is enabled for Sandbox and can be changed in settings.'
? '- Auto-build and deploy is enabled for Sandbox and can be changed in settings. <br />'
: ''
}`}
}
${
activeProject?.language === 'tact' &&
'<br />- Tact version: ' + tactVersion
}
`}
allowedFile={['fc', 'tact']}
onCompile={async () => {
if (
Expand Down

0 comments on commit c771fd4

Please sign in to comment.