small fixes
This commit is contained in:
parent
f831ae6734
commit
eb52c83829
@ -33,8 +33,8 @@ REST_FRAMEWORK = {
|
|||||||
'rest_framework.permissions.IsAuthenticated',
|
'rest_framework.permissions.IsAuthenticated',
|
||||||
# 'rest_framework.permissions.AllowAny',
|
# 'rest_framework.permissions.AllowAny',
|
||||||
],
|
],
|
||||||
'DEFAULT_AUTHENTICATION_CLASSES': ['knox.auth.TokenAuthentication'],
|
# 'DEFAULT_AUTHENTICATION_CLASSES': ['knox.auth.TokenAuthentication'],
|
||||||
# 'DEFAULT_AUTHENTICATION_CLASSES': ('knox.auth.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication'),
|
'DEFAULT_AUTHENTICATION_CLASSES': ('knox.auth.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication'),
|
||||||
# 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
|
# 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
|
||||||
# 'PAGE_SIZE': 10
|
# 'PAGE_SIZE': 10
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
"use-global-hook": "^0.1.12"
|
"use-global-hook": "^0.1.12"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "BROWSER=firefox-developer-edition react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject"
|
"eject": "react-scripts eject"
|
||||||
|
@ -23,7 +23,7 @@ function AddMetadata() {
|
|||||||
const [selectedFile, setSelectedFile] = useState(null);
|
const [selectedFile, setSelectedFile] = useState(null);
|
||||||
const [pickedDate, setPickedDate] = useState("");
|
const [pickedDate, setPickedDate] = useState("");
|
||||||
const [shops, setShops] = useState([]);
|
const [shops, setShops] = useState([]);
|
||||||
const [shopsLoading, setShopsLoading] = useState(false);
|
const [shopsLoading, setShopsLoading] = useState(true);
|
||||||
const [globalState, globalActions] = useGlobal();
|
const [globalState, globalActions] = useGlobal();
|
||||||
|
|
||||||
const uploadPhoto = event => {
|
const uploadPhoto = event => {
|
||||||
|
Loading…
Reference in New Issue
Block a user