fix: ts
This commit is contained in:
@@ -28,10 +28,6 @@ const (
|
|||||||
LocationTTL = 1 * time.Hour
|
LocationTTL = 1 * time.Hour
|
||||||
)
|
)
|
||||||
|
|
||||||
// ============================================
|
|
||||||
// STRUCTURES
|
|
||||||
// ============================================
|
|
||||||
|
|
||||||
type GeoLocation struct {
|
type GeoLocation struct {
|
||||||
Latitude float64 `json:"lat,string"`
|
Latitude float64 `json:"lat,string"`
|
||||||
Longitude float64 `json:"lon,string"`
|
Longitude float64 `json:"lon,string"`
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ function ConsultationHistorique() {
|
|||||||
const [orders, setOrders] = useState<CompletedOrder[]>([]);
|
const [orders, setOrders] = useState<CompletedOrder[]>([]);
|
||||||
const [clientStats, setClientStats] = useState<ClientStats | null>(null);
|
const [clientStats, setClientStats] = useState<ClientStats | null>(null);
|
||||||
const [penalties, setPenalties] = useState<PenaltyInfo | null>(null);
|
const [penalties, setPenalties] = useState<PenaltyInfo | null>(null);
|
||||||
const [appSettings, setAppSettings] = useState<PublicSettings>({ penalties_enabled: true, show_amende_score: true, points_enabled: true, points_separated: true, referral_enabled: true, referral_amount: 0, pool_names: ['Pool 1', 'Pool 2'], crypto_payment_enabled: false, crypto_only: false, nowpayments_currencies: [] });
|
const [appSettings, setAppSettings] = useState<PublicSettings>({ penalties_enabled: true, show_amende_score: true, points_enabled: true, points_separated: true, referral_enabled: true, referral_amount: 0, pool_names: ['Pool 1', 'Pool 2'], crypto_payment_enabled: false, crypto_only: false, nowpayments_currencies: [], shop_name: 'Milieu-Nantais', two_fa_enabled: false });
|
||||||
const [referralBalance, setReferralBalance] = useState<number>(0);
|
const [referralBalance, setReferralBalance] = useState<number>(0);
|
||||||
const [isLoading, setIsLoading] = useState(true);
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
const [error, setError] = useState<string>('');
|
const [error, setError] = useState<string>('');
|
||||||
|
|||||||
Reference in New Issue
Block a user