@ouroboros/mouth-mui 1.0.0 → 1.0.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouroboros/mouth-mui",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Components for use with the Mouth service",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -46,7 +46,7 @@ export default function Locales(props) {
46
46
  useEffect(() => {
47
47
  // If we have read rights
48
48
  if (rights.read) {
49
- mouth.read('locale').then(recordsSet);
49
+ mouth.read('locales').then(recordsSet);
50
50
  }
51
51
  else {
52
52
  recordsSet([]);
@@ -64,7 +64,7 @@ export default function Locales(props: LocalesProps) {
64
64
 
65
65
  // If we have read rights
66
66
  if(rights.read) {
67
- mouth.read('locale').then(recordsSet);
67
+ mouth.read('locales').then(recordsSet);
68
68
  } else {
69
69
  recordsSet([]);
70
70
  }
package/src/locales.js CHANGED
@@ -138,7 +138,7 @@ class Locales extends Subscribe {
138
138
  // Mark us as running
139
139
  this.running = true;
140
140
  // Fetch the data from the server
141
- mouth.read('locale').then((list) => {
141
+ mouth.read('locales').then((list) => {
142
142
  // If there's data
143
143
  if (list) {
144
144
  // Trigger all callbacks
package/src/locales.ts CHANGED
@@ -171,7 +171,7 @@ class Locales extends Subscribe {
171
171
  this.running = true;
172
172
 
173
173
  // Fetch the data from the server
174
- mouth.read('locale').then((list: any) => {
174
+ mouth.read('locales').then((list: any) => {
175
175
 
176
176
  // If there's data
177
177
  if(list) {