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 @@ -1153,19 +1153,19 @@ def test_storage_component(self):
1153
1153
dummy_data = 'Hello dummy'
1154
1154
1155
1155
app .layout = html .Div ([
1156
- dcc .Storage (id = 'storage' ,
1156
+ dcc .Store (id = 'storage' ,
1157
1157
storage_type = 'local' ),
1158
1158
html .Button ('click me' , id = 'btn' ),
1159
1159
html .Button ('clear' , id = 'clear-btn' ),
1160
1160
html .Button ('set-init-storage' ,
1161
1161
id = 'set-init-storage' ),
1162
- dcc .Storage (id = 'dummy' ,
1162
+ dcc .Store (id = 'dummy' ,
1163
1163
storage_type = 'session' ,
1164
1164
data = dummy_data ),
1165
- dcc .Storage (id = 'memory' ,
1165
+ dcc .Store (id = 'memory' ,
1166
1166
storage_type = 'memory' ),
1167
1167
html .Div (id = 'memory-output' ),
1168
- dcc .Storage (id = 'initial-storage' ,
1168
+ dcc .Store (id = 'initial-storage' ,
1169
1169
storage_type = 'session' ),
1170
1170
html .Div (id = 'init-output' )
1171
1171
])
You can’t perform that action at this time.
0 commit comments