Skip to content

Commit 8f3087e

Browse files
palkerecsenyizzacharo
authored andcommitted
overridable: reword some text
1 parent 47eca1d commit 8f3087e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/operate/customize/look-and-feel/override_components.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ If you're struggling, you can always [ask for help](../../../install/troubleshoo
4545

4646
## 2. Find or create the mapping file
4747

48-
In new InvenioRDM installations at v11 or above, a near-empty file named `mapping.js` is available at the following path in your `assets` folder:
48+
In InvenioRDM v11 or above installations, a file named `mapping.js` is available at the following path in your `assets` folder:
4949

5050
```terminal
5151
├── assets
@@ -55,7 +55,7 @@ In new InvenioRDM installations at v11 or above, a near-empty file named `mappin
5555
| | | | ├── mapping.js
5656
```
5757

58-
For existing installations, you will have to create it. It is a very simple file:
58+
For installations prior to v11, you will have to create it. It is a very simple file:
5959

6060
```javascript
6161
export const overriddenComponents = {};
@@ -71,7 +71,7 @@ The override can be specified in one of three ways, depending on your use case a
7171
- a 'dynamic' override of the props based on the form's state
7272
- completely replacing a component with a custom one
7373

74-
### a. Statically override a component's props
74+
### Statically override a component's props
7575

7676
You can use the `parametrize` function built into `react-overridable`, into which you need to pass the component you wish to override and an object containing your props.
7777
These props will be 'merged' with the existing props, with yours taking precedence over existing ones of the same name.
@@ -93,7 +93,7 @@ export const overriddenComponents = {
9393
}
9494
```
9595

96-
### b. Dynamically override a component's props
96+
### Dynamically override a component's props
9797

9898
To implement more complex functionality in the deposit form, you can override the props of components by using a custom function.
9999
This allows you to express a range of behaviours:
@@ -129,7 +129,7 @@ The callback function is currently passed an object as its single argument, cont
129129
- `formValues`: the raw values of the entire deposit form as given by Formik. The majority of field values are under the `metadata` key.
130130
- `existingProps`: the props passed to the element before your override.
131131

132-
### c. Fully replace a component
132+
### Fully replace a component
133133

134134
To fully replace a component with your custom one, first create the component definition within your instance's source code.
135135
For example:

0 commit comments

Comments
 (0)