Skip to content

Commit 9383573

Browse files
Added 17th componenent switch
1 parent 9b87d92 commit 9383573

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/src/context/HTMLTypes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const HTMLTypes: HTMLType[] = [
158158
},
159159
{
160160
id: 17,
161-
tag: 'switch',
161+
tag: 'Switch',
162162
name: 'Switch',
163163
style: {},
164164
placeHolderShort: 'switch item',

app/src/helperFunctions/generateCode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ const generateUnformattedCode = (
120120
childElement.tag === 'ol' ||
121121
childElement.tag === 'ul' ||
122122
childElement.tag === 'menu' ||
123-
childElement.tag === 'li' ||
124-
childElement.tag === 'switch';
123+
childElement.tag === 'li';
124+
// childElement.tag === 'Switch';
125125

126126
if (childElement.tag === 'img') {
127127
return `${levelSpacer(level, 5)}<${childElement.tag} src="${activeLink}" ${elementTagDetails(childElement)}/>${levelSpacer(2, (3 + level))}`;

0 commit comments

Comments
 (0)