Update home page and styles, add user API URL
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -93,7 +93,6 @@ export const HomePage = () => {
|
|||||||
|
|
||||||
const handleLogin = useCallback(async () =>{
|
const handleLogin = useCallback(async () =>{
|
||||||
//let appStart = getLocalStorage(StorageKeys.AppStart);
|
//let appStart = getLocalStorage(StorageKeys.AppStart);
|
||||||
alert('handleLogin');
|
|
||||||
//if(!!appStart){
|
//if(!!appStart){
|
||||||
if(false){
|
if(false){
|
||||||
useStore.getState().UserStore.resetUserInfo();
|
useStore.getState().UserStore.resetUserInfo();
|
||||||
@@ -150,12 +149,8 @@ export const HomePage = () => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// handleRequestToken();
|
// handleRequestToken();
|
||||||
if (isNativeEnvironment) {
|
if (isNativeEnvironment) {
|
||||||
alert('isNativeEnvironment');
|
|
||||||
console.log('isNativeEnvironment');
|
|
||||||
handleRequestToken();
|
handleRequestToken();
|
||||||
} else {
|
} else {
|
||||||
alert('not isNativeEnvironment');
|
|
||||||
console.log('not isNativeEnvironment');
|
|
||||||
handleLogin();
|
handleLogin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
25
src/shared/api/api-url-user.ts
Normal file
25
src/shared/api/api-url-user.ts
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import {
|
||||||
|
API_BASE_URL,
|
||||||
|
API_URL_KEY,
|
||||||
|
} from './../constants/url';
|
||||||
|
|
||||||
|
export const API_URL_USER = {
|
||||||
|
allUserList: () => {
|
||||||
|
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/all/users`;
|
||||||
|
},
|
||||||
|
createUser: () => {
|
||||||
|
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/create`;
|
||||||
|
},
|
||||||
|
deleteUser: () => {
|
||||||
|
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/delete`;
|
||||||
|
},
|
||||||
|
updateUser: () => {
|
||||||
|
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/update`;
|
||||||
|
},
|
||||||
|
userDetail: () => {
|
||||||
|
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/detail`;
|
||||||
|
},
|
||||||
|
existsUserid: () => {
|
||||||
|
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/exists/userid`;
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -5593,6 +5593,12 @@ ul.txn-amount-detail li span:last-child {
|
|||||||
.faq-section {
|
.faq-section {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.faq-controlls {
|
||||||
|
display: grid;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.faq-search {
|
.faq-search {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -5618,14 +5624,9 @@ ul.txn-amount-detail li span:last-child {
|
|||||||
}
|
}
|
||||||
.faq-filter {
|
.faq-filter {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: 0 12px;
|
|
||||||
border: 1px solid #D9D9D9;
|
|
||||||
border-radius: 8px;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.faq-filter .text {
|
.faq-filter .text {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: var(--color-2D3436);
|
color: var(--color-2D3436);
|
||||||
|
|||||||
Reference in New Issue
Block a user