This repository was archived by the owner on Jun 3, 2024. It is now read-only.
File tree 3 files changed +9
-9
lines changed 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ const _sessionStore = new WebStore(window.sessionStorage);
99
99
* Data can be in memory, localStorage or sessionStorage.
100
100
* The data will be kept with the id as key.
101
101
*/
102
- export default class Storage extends React . Component {
102
+ export default class Store extends React . Component {
103
103
constructor ( props ) {
104
104
super ( props ) ;
105
105
@@ -187,13 +187,13 @@ export default class Storage extends React.Component {
187
187
}
188
188
}
189
189
190
- Storage . defaultProps = {
190
+ Store . defaultProps = {
191
191
storage_type : 'memory' ,
192
192
clear_data : false ,
193
193
modified_timestamp : - 1
194
194
} ;
195
195
196
- Storage . propTypes = {
196
+ Store . propTypes = {
197
197
/**
198
198
* The key of the storage.
199
199
*/
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import DatePickerRange from './components/DatePickerRange.react';
19
19
import Upload from './components/Upload.react' ;
20
20
import Tabs from './components/Tabs.react' ;
21
21
import Tab from './components/Tab.react' ;
22
- import Storage from './components/Storage .react' ;
22
+ import Store from './components/Store .react' ;
23
23
24
24
export {
25
25
Checklist ,
@@ -42,5 +42,5 @@ export {
42
42
DatePickerSingle ,
43
43
DatePickerRange ,
44
44
Upload ,
45
- Storage
45
+ Store
46
46
} ;
Original file line number Diff line number Diff line change @@ -1172,19 +1172,19 @@ def test_storage_component(self):
1172
1172
dummy_data = 'Hello dummy'
1173
1173
1174
1174
app .layout = html .Div ([
1175
- dcc .Storage (id = 'storage' ,
1175
+ dcc .Store (id = 'storage' ,
1176
1176
storage_type = 'local' ),
1177
1177
html .Button ('click me' , id = 'btn' ),
1178
1178
html .Button ('clear' , id = 'clear-btn' ),
1179
1179
html .Button ('set-init-storage' ,
1180
1180
id = 'set-init-storage' ),
1181
- dcc .Storage (id = 'dummy' ,
1181
+ dcc .Store (id = 'dummy' ,
1182
1182
storage_type = 'session' ,
1183
1183
data = dummy_data ),
1184
- dcc .Storage (id = 'memory' ,
1184
+ dcc .Store (id = 'memory' ,
1185
1185
storage_type = 'memory' ),
1186
1186
html .Div (id = 'memory-output' ),
1187
- dcc .Storage (id = 'initial-storage' ,
1187
+ dcc .Store (id = 'initial-storage' ,
1188
1188
storage_type = 'session' ),
1189
1189
html .Div (id = 'init-output' )
1190
1190
])
You can’t perform that action at this time.
0 commit comments