Skip to content

Commit

Permalink
Merge branch 'main' of github.com:TrustlessComputer/bvm-website
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Sep 5, 2024
2 parents 7f5553c + da28eab commit 5a4470c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/modules/blockchains/Buy/component4/BoxOption/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ const BoxOption = ({
checked = true;
}
}

return (
<React.Fragment
key={section.key + blockKey + block.title}
Expand Down Expand Up @@ -347,9 +346,10 @@ const BoxOption = ({
{thisDapp.baseModuleFields
?.filter((f) => f.section === section.key)
?.map((item) => {
let checked = false;

return item.fields.map((field) => {
let checked = false;

if (allThisDappForm.length > 0) {
for (const key in formDappSignal.value) {
if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const ExtendsInput = ({
if (typeof formDappToggle[key] !== 'undefined') {
setToggle(formDappToggle[key]);
} else {
formDappToggle = {
formDappSignal.value = {
...formDappToggle,
[key]: Boolean(value),
};
Expand Down
4 changes: 2 additions & 2 deletions src/modules/blockchains/Buy/component4/Input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ const Input = ({
const key = FormDappUtil.getKeyForm(props, props, name);

// console.log(
// 'formDappInput -> ',
// 'formDappInput222',
// key,
// formTemplateDappSignal.value,
// formDappInput[key],
// );

if (typeof formDappInput[key] === 'undefined') {
formDappInput = {
formDappSignal.value = {
...formDappInput,
[key]: '',
};
Expand Down
6 changes: 6 additions & 0 deletions src/modules/blockchains/Buy/component4/Lego/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ const Lego = (props: Props) => {
icon ||
null;

if(props.infoLego?.title === 'Staking') {
console.log('checked', checked);

}


return (
<Flex
className={cn(styles.lego, {
Expand Down

0 comments on commit 5a4470c

Please sign in to comment.