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