small fixes

This commit is contained in:
Stanislaw-Golebiewski 2020-01-18 10:31:34 +01:00
parent f831ae6734
commit eb52c83829
3 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

@ -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"

View File

@ -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 => {