Skip to content

Commit

Permalink
Merge pull request #161 from boostcampwm-2024/fix/client/terraform
Browse files Browse the repository at this point in the history
🐞 Fix(client): terraform 이름 수정
  • Loading branch information
SeoGeonhyuk authored Nov 28, 2024
2 parents 0fdcdbb + 75712b0 commit 56f5f9e
Show file tree
Hide file tree
Showing 2 changed files with 208 additions and 13 deletions.
7 changes: 4 additions & 3 deletions apps/client/src/components/Layout/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import IconButton from '@mui/material/IconButton';
import Stack from '@mui/material/Stack';
import { styled, useColorScheme } from '@mui/material/styles';
import Typography from '@mui/material/Typography';
import { TerraformConvertor } from 'node_modules/terraform/convertor/TerraformConvertor';
import { TerraformConverter } from 'node_modules/terraform/converter/TerraformConverter';
import { useState } from 'react';

const StyledBox = styled(Box)(({ theme }) => ({
Expand Down Expand Up @@ -65,8 +65,9 @@ export default () => {
return;
}

const Converter = new TerraformConvertor();
Converter.addResourceFromJson(nodeProperties);
const Converter = new TerraformConverter();
console.log(nodeProperties);
Converter.addResourceFromJson([nodeProperties]);
setTerraformCode(Converter.generate());
setOpenDrawer(true);
};
Expand Down
Loading

0 comments on commit 56f5f9e

Please sign in to comment.