handoff-app 1.2.2-0 → 1.2.2-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/app/pages/_app.tsx
CHANGED
|
@@ -71,7 +71,8 @@ export const getStaticProps: GetStaticProps = () => {
|
|
|
71
71
|
export default function SingleIcon({ menu, metadata, current, config, assets }: AssetDocumentationProps) {
|
|
72
72
|
const router = useRouter();
|
|
73
73
|
const nameParam = router.query.name;
|
|
74
|
-
|
|
74
|
+
let name = undefined;
|
|
75
|
+
if (typeof nameParam === 'string') { name = nameParam } else if (Array.isArray(nameParam)) { name = nameParam[0] } else { name = undefined }
|
|
75
76
|
const icon = assets?.icons.find((i) => i.icon === name);
|
|
76
77
|
|
|
77
78
|
const copySvg = React.useCallback<React.MouseEventHandler>(
|
|
@@ -225,7 +225,6 @@ export function ComponentDesignTokens({
|
|
|
225
225
|
previewObject,
|
|
226
226
|
previewObjectOptions,
|
|
227
227
|
overrides,
|
|
228
|
-
renderPreviews: _renderPreviews,
|
|
229
228
|
useReferences,
|
|
230
229
|
}: ComponentDesignTokensProps) {
|
|
231
230
|
const previewObjectVariantPropsMap = new Map(previewObject.variantProperties);
|
|
@@ -233,8 +232,6 @@ export function ComponentDesignTokens({
|
|
|
233
232
|
const headings: Set<string> = new Set<string>();
|
|
234
233
|
const dataTable = new Map() as DataTable;
|
|
235
234
|
|
|
236
|
-
let numberOfColumns = 0;
|
|
237
|
-
|
|
238
235
|
if (overrides) {
|
|
239
236
|
const overrideVariantProps = Object.keys(overrides) ?? [];
|
|
240
237
|
const masterOverride = overrideVariantProps[0];
|
|
@@ -268,9 +265,6 @@ export function ComponentDesignTokens({
|
|
|
268
265
|
.push([token.name, token.value, token ?? undefined]);
|
|
269
266
|
});
|
|
270
267
|
|
|
271
|
-
// Increase columns count
|
|
272
|
-
numberOfColumns++;
|
|
273
|
-
|
|
274
268
|
// Append heading to the list of headings
|
|
275
269
|
headings.add(componentVariantPropsMap.get(masterOverride));
|
|
276
270
|
});
|
|
@@ -289,9 +283,6 @@ export function ComponentDesignTokens({
|
|
|
289
283
|
.push([token.name, token.value, token ?? undefined]);
|
|
290
284
|
});
|
|
291
285
|
|
|
292
|
-
// Increase columns count
|
|
293
|
-
numberOfColumns++;
|
|
294
|
-
|
|
295
286
|
// Append heading to the list of headings
|
|
296
287
|
headings.add('Value');
|
|
297
288
|
}
|