Skip to content

Commit 6ab9c0c

Browse files
committed
fix: links in components
1 parent 9a12d9e commit 6ab9c0c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

content/contracts-cairo/components.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ By adding the embed attribute, `is_initialized` becomes a contract entrypoint fo
131131

132132

133133
Embeddable implementations, when available in this library’s components, are segregated from the internal component implementation which makes it easier to safely expose.
134-
Components also separate granular implementations from [mixin](/components#mixins) implementations.
134+
Components also separate granular implementations from [mixin](/contracts-cairo/components#mixins) implementations.
135135
The API documentation design reflects these groupings.
136-
See [ERC20Component](/api/erc20#ERC20Component) as an example which includes:
136+
See [ERC20Component](/contracts-cairo/api/erc20#erc20component) as an example which includes:
137137

138138
* **Embeddable Mixin Implementation**
139139
* **Embeddable Implementations**
@@ -238,7 +238,7 @@ Always read the API documentation for each integrated component.
238238
Some components require some sort of setup upon construction.
239239
Usually, this would be a job for a constructor; however, components themselves cannot implement constructors.
240240
Components instead offer ``initializer``s within their `InternalImpl` to call from the contract’s constructor.
241-
Let’s look at how a contract would integrate [OwnableComponent](/api/access#OwnableComponent):
241+
Let’s look at how a contract would integrate [OwnableComponent](/contracts-cairo/api/access#ownablecomponent):
242242

243243
```rust
244244
#[starknet::contract]
@@ -283,7 +283,7 @@ constants declared in the component, customizing its functionality.
283283
The Immutable Component Config standard is defined in the SRC-107.
284284
</Callout>
285285

286-
Here’s an example of how to use the Immutable Component Config pattern with the [ERC2981Component](/api/token_common#ERC2981Component):
286+
Here’s an example of how to use the Immutable Component Config pattern with the [ERC2981Component](/contracts-cairo/api/token_common#erc2981component):
287287

288288
```rust
289289
#[starknet::contract]
@@ -391,7 +391,7 @@ on how to use this function, refer to the [validate section of the SRC-107](http
391391

392392
Some components include dependencies of other components.
393393
Contracts that integrate components with dependencies must also include the component dependency.
394-
For instance, [AccessControlComponent](/api/access#AccessControlComponent) depends on [SRC5Component](/api/introspection#SRC5Component).
394+
For instance, [AccessControlComponent](/contracts-cairo/api/access#accesscontrolcomponent) depends on [SRC5Component](/contracts-cairo/api/introspection#src5component).
395395
Creating a contract with `AccessControlComponent` should look like this:
396396

397397
```rust
@@ -563,7 +563,7 @@ mod ERC20Pausable {
563563
The first thing to notice is that the contract imports the interfaces of the implementations that will be customized.
564564
These will be used in the next code example.
565565

566-
Next, the contract includes the [ERC20Component](/api/erc20#ERC20Component) implementations; however, `ERC20Impl` and `ERC20CamelOnlyImpl` are **not** embedded.
566+
Next, the contract includes the [ERC20Component](/contracts-cairo/api/erc20#erc20component) implementations; however, `ERC20Impl` and `ERC20CamelOnlyImpl` are **not** embedded.
567567
Instead, we want to expose our custom implementation of an interface.
568568
The following example shows the pausable logic integrated into the ERC20 implementations:
569569

0 commit comments

Comments
 (0)