Skip to content

Commit 9c4aebb

Browse files
author
Francisco
committed
Changed name of linkProps to link
1 parent 97f2863 commit 9c4aebb

File tree

10 files changed

+18
-20
lines changed

10 files changed

+18
-20
lines changed

lib/schemas/browse/modules/components/chips.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const componentNames = require('../componentNames');
44
const { conditionsSchema } = require('../../../common/conditions/conditions');
55
const { makeComponent } = require('../../../utils');
6-
const linkProps = require('../../../common/linkProps');
6+
const link = require('../../../common/link');
77

88
const {
99
chip,
@@ -65,7 +65,7 @@ const chipComponents = [
6565
useTheme: { type: 'string' },
6666
themeConditionals,
6767
linkField: { type: 'string' },
68-
...linkProps.properties
68+
...link.properties
6969
}
7070
},
7171
{
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict';
22

33
const { makeComponent } = require('../utils');
4-
const { link } = require('./componentNames');
4+
const { link: linkName } = require('./componentNames');
55
const mapper = require('../common/mapper');
6-
const linkProps = require('../common/linkProps');
6+
const link = require('../common/link');
77

88
module.exports = makeComponent({
9-
name: link,
9+
name: linkName,
1010
properties: {
1111
translateLabels: { type: 'boolean' },
1212
icon: { type: 'string' },
@@ -16,6 +16,6 @@ module.exports = makeComponent({
1616
target: { type: 'string' },
1717
urlTarget: { $ref: 'schemaDefinitions#/definitions/endpoint' },
1818
openPrint: { type: 'boolean' },
19-
...linkProps.properties
19+
...link.properties
2020
}
2121
});

lib/schemas/common/actionCallbacks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const linkProps = require('./linkProps');
3+
const link = require('./link');
44

55
// Edit page section topComponents callbacks
66
const sectionCallbacks = ['reloadSectionData'];
@@ -42,7 +42,7 @@ module.exports = ({ isBrowsePage, customCallbacks }) => ({
4242
type: 'object',
4343
properties: {
4444
target: { enum: ['_blank', '_self'] },
45-
...linkProps.properties
45+
...link.properties
4646
},
4747
required: ['path'],
4848
additionalProperties: false

lib/schemas/common/actions/action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const { path } = require('../linkProps').properties;
3+
const { path } = require('../link').properties;
44

55
const endpointParameters = {
66
oneOf: [

lib/schemas/common/customLink.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use strict';
22

3-
const linkProps = require('./linkProps');
3+
const link = require('./link');
44

55
module.exports = {
66
type: 'object',
7-
properties: linkProps.properties,
7+
properties: link.properties,
88
additionalProperties: false,
99
required: ['path'],
1010
minProperties: 1

lib/schemas/common/generic-actions/action.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const linkProps = require('../linkProps');
3+
const link = require('../link');
44

55
const commonAttrs = {
66
variant: { enum: ['cleaned', 'contained', 'outlined'] },
@@ -40,7 +40,7 @@ module.exports = {
4040
...commonAttrs,
4141
linkTarget: { type: 'string' },
4242
target: { $ref: 'schemaDefinitions#/definitions/endpoint' },
43-
...linkProps.properties
43+
...link.properties
4444
},
4545
default: {},
4646
additionalProperties: false

lib/schemas/common/graphs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const filters = require('../browse/modules/filters');
4-
const linkProps = require('./linkProps');
4+
const link = require('./link');
55
const mapper = require('./mapper');
66

77

@@ -57,7 +57,7 @@ const baseSchemaProperties = {
5757
{ type: 'string' },
5858
{
5959
type: 'object',
60-
properties: linkProps.properties
60+
properties: link.properties
6161
}
6262
]
6363
},

lib/schemas/definitions/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const redirect = require('../common/redirect');
1515
const canCreate = require('../common/canCreate');
1616
const actionField = require('../common/actions/field');
1717
const width = require('../common/width');
18-
const linkProps = require('../common/linkProps');
1918

2019
module.exports = {
2120
$id: 'schemaDefinitions',
@@ -34,7 +33,6 @@ module.exports = {
3433
featureFlags,
3534
canCreate,
3635
actionField,
37-
width,
38-
linkProps
36+
width
3937
}
4038
};

lib/schemas/edit-new/modules/components/chips.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const componentNames = require('../componentNames');
44
const { conditionsSchema } = require('../../../common/conditions/conditions');
55
const { makeComponent } = require('../../../utils');
6-
const linkProps = require('../../../common/linkProps');
6+
const link = require('../../../common/link');
77

88
const { chip, userChip, statusChip, mediumChip } = componentNames;
99

@@ -73,7 +73,7 @@ const chipComponents = [
7373
useTheme: { type: 'string' },
7474
themeConditionals,
7575
linkField: { type: 'string' },
76-
...linkProps.properties
76+
...link.properties
7777
}
7878
}
7979
];

0 commit comments

Comments
 (0)