Skip to content

Commit 3df4076

Browse files
Max YouMax You
Max You
authored and
Max You
committed
lint fix
Signed-off-by: Max You <[email protected]>
1 parent 856b303 commit 3df4076

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

player/react/src/lib/components/ui-tabs.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ export const slots = {
7777
toggleNavigation: (state: TabsState) => ({
7878
...state,
7979
isNavigation: !state.isNavigation
80-
}),
80+
})
8181
};
8282

83-
8483
export const UITabs = ({ state, setState, setGlobalState, sendSignal }: {
8584
state: TabsState;
8685
setState: (state: any) => void;

sdk/react/src/lib/fragment-components/a-tabs.tsx

+22-13
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const ATabsSettingsUI = ({ selectedComponent, setComponent }: any) => {
119119
};
120120

121121
export const ATabsCodeUI = ({ selectedComponent, setComponent }: any) => <TextInput
122-
id="input-name"
122+
id='input-name'
123123
value={selectedComponent.codeContext?.name}
124124
labelText='Input name'
125125
onChange={(event: any) => {
@@ -146,10 +146,10 @@ export const ATabs = ({
146146
rejectDrop={true}
147147
componentObj={componentObj}
148148
{...rest}>
149-
<Tabs className={componentObj.cssClasses?.map((cc: any) => cc.id).join(' ')}>
149+
<Tabs className={componentObj.cssClasses?.map((cc: any) => cc.id).join(' ')}>
150150
{
151151
componentObj.tabType === 'line' ?
152-
<TabList aria-label="List of tabs">
152+
<TabList aria-label='List of tabs'>
153153
{
154154
componentObj.items.map((step: any, index: number) => <Tab
155155
onClick= {() => componentObj.selectedTab = index}
@@ -194,8 +194,8 @@ export const ATabs = ({
194194
}
195195
</Tab>)
196196
}
197-
</TabList> :
198-
<TabList aria-label="List of tabs" contained>
197+
</TabList> :
198+
<TabList aria-label='List of tabs' contained>
199199
{
200200
componentObj.items.map((step: any, index: number) => <Tab
201201
onClick= {() => componentObj.selectedTab = index}
@@ -297,7 +297,9 @@ export const componentInfo: ComponentInfo = {
297297
codeExport: {
298298
angular: {
299299
latest: {
300-
inputs: ({ json }) => `@Input() ${nameStringToVariableString(json.codeContext?.name)}FollowFocus = ${json.isFollowFocused ? json.isFollowFocused : false};
300+
inputs: ({ json }) => `
301+
@Input() ${nameStringToVariableString(json.codeContext?.name)}FollowFocus = ${
302+
json.isFollowFocused ? json.isFollowFocused : false};
301303
@Input() ${nameStringToVariableString(json.codeContext?.name)}CacheActive = ${json.isCacheActive ? json.isCacheActive : false};
302304
@Input() ${nameStringToVariableString(json.codeContext?.name)}isNavigation = ${json.isNavigation ? json.isNavigation : true};
303305
@Input() ${nameStringToVariableString(json.codeContext?.name)}TabType: any = "${json.tabType ? json.tabType : 'contained'}";`,
@@ -315,7 +317,8 @@ export const componentInfo: ComponentInfo = {
315317
[disabled]=${step.disabled}>
316318
${step.items && step.items.length > 0
317319
? `<section>
318-
${step.items.map((element: any) => jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
320+
${step.items.map((element: any) =>
321+
jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
319322
</section>`
320323
: ''}
321324
</ibm-tab>`
@@ -324,7 +327,8 @@ export const componentInfo: ComponentInfo = {
324327
}
325328
},
326329
v10: {
327-
inputs: ({ json }) => `@Input() ${nameStringToVariableString(json.codeContext?.name)}FollowFocus = ${json.isFollowFocused ? json.isFollowFocused : false};
330+
inputs: ({ json }) => `
331+
@Input() ${nameStringToVariableString(json.codeContext?.name)}FollowFocus = ${json.isFollowFocused ? json.isFollowFocused : false};
328332
@Input() ${nameStringToVariableString(json.codeContext?.name)}CacheActive = ${json.isCacheActive ? json.isCacheActive : false};
329333
@Input() ${nameStringToVariableString(json.codeContext?.name)}isNavigation = ${json.isNavigation ? json.isNavigation : true};
330334
@Input() ${nameStringToVariableString(json.codeContext?.name)}TabType: any = "${json.tabType ? json.tabType : 'contained'}";`,
@@ -342,7 +346,8 @@ export const componentInfo: ComponentInfo = {
342346
[disabled]=${step.disabled}>
343347
${step.items && step.items.length > 0
344348
? `<section>
345-
${step.items.map((element: any) => jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
349+
${step.items.map((element: any) =>
350+
jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
346351
</section>`
347352
: ''}
348353
</ibm-tab>`
@@ -370,7 +375,8 @@ export const componentInfo: ComponentInfo = {
370375
${step.labelText}
371376
${step.items && step.items.length > 0
372377
? `<section>
373-
${step.items.map((element: any) => jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
378+
${step.items.map((element: any) =>
379+
jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
374380
</section>`
375381
: ''}
376382
</Tab>`
@@ -390,7 +396,8 @@ export const componentInfo: ComponentInfo = {
390396
${step.labelText}
391397
${step.items && step.items.length > 0
392398
? `<section>
393-
${step.items.map((element: any) => jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
399+
${step.items.map((element: any) =>
400+
jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
394401
</section>`
395402
: ''}
396403
</Tab>`
@@ -418,7 +425,8 @@ export const componentInfo: ComponentInfo = {
418425
${step.labelText}
419426
${step.items && step.items.length > 0
420427
? `<section>
421-
${step.items.map((element: any) => jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
428+
${step.items.map((element: any) =>
429+
jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
422430
</section>`
423431
: ''}
424432
</Tab>`
@@ -438,7 +446,8 @@ export const componentInfo: ComponentInfo = {
438446
${step.labelText}
439447
${step.items && step.items.length > 0
440448
? `<section>
441-
${step.items.map((element: any) => jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
449+
${step.items.map((element: any) =>
450+
jsonToTemplate(element, fragments, customComponentsCollections)).join('\n')}
442451
</section>`
443452
: ''}
444453
</Tab>`

0 commit comments

Comments
 (0)