Skip to content

Commit 0d1da4f

Browse files
authored
doc: update path in MVVM doc (#31001)
1 parent c4d6a28 commit 0d1da4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/MVVM.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This is anywhere your data or business logic comes from. If your view model is a
1818

1919
#### View
2020

21-
1. Located in [`shared-components`](https://github.com/element-hq/element-web/tree/develop/src/shared-components). Develop it in storybook!
21+
1. Located in [`shared-components`](https://github.com/element-hq/element-web/tree/develop/packages/shared-components). Develop it in storybook!
2222
2. Views are simple react components (eg: `FooView`).
2323
3. Views use [useSyncExternalStore](https://react.dev/reference/react/useSyncExternalStore) internally where the view model is the external store.
2424
4. Views should define the interface of the view model they expect:
@@ -35,7 +35,7 @@ This is anywhere your data or business logic comes from. If your view model is a
3535
}
3636

3737
// ViewModel is a type defining the methods needed for `useSyncExternalStore`
38-
// https://github.com/element-hq/element-web/blob/develop/src/shared-components/ViewModel.ts
38+
// https://github.com/element-hq/element-web/blob/develop/packages/shared-components/src/ViewModel.ts
3939
type FooViewModel = ViewModel<FooViewSnapshot> & FooViewActions;
4040

4141
interface FooViewProps {
@@ -54,7 +54,7 @@ This is anywhere your data or business logic comes from. If your view model is a
5454
```
5555

5656
5. Multiple views can share the same view model if necessary.
57-
6. A full example is available [here](https://github.com/element-hq/element-web/blob/develop/src/shared-components/audio/AudioPlayerView/AudioPlayerView.tsx)
57+
6. A full example is available [here](https://github.com/element-hq/element-web/blob/develop/packages/shared-components/src/audio/AudioPlayerView/AudioPlayerView.tsx)
5858

5959
#### View Model
6060

0 commit comments

Comments
 (0)