few changes
This commit is contained in:
1 parent
381313f91f
commit
714d3464bd
2 files changed
+12
-4
No files matched your search
@@ -1,11 +1,11 @@
|
||||
"use client";
|
||||
|
||||
import React, { CSSProperties, MouseEventHandler } from 'react';
|
||||
import React, { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
||||
import styles from "@/css/OldButton.module.css";
|
||||
import clsx from 'clsx';
|
||||
|
||||
interface OldButtonProps {
|
||||
children?: string;
|
||||
children?: ReactNode;
|
||||
long?: boolean;
|
||||
red?: boolean;
|
||||
disabled?: boolean;
|
||||
|
||||
@@ -71,16 +71,24 @@ export default function PermissionCheck({
|
||||
disabled={isCamPermissionLoading || cameraStatus === "granted"}
|
||||
onAction={requestCamPermission}
|
||||
>
|
||||
Kamera-Berechtigung</OldButton>
|
||||
<div className="center-flex" style={{flexDirection: "row"}}>
|
||||
<img className={styles["status-icon"]} src={cameraStatus === "granted" ? "/icons/haken.svg" : "/icons/kreuz.svg"} alt={`Status Symbol: ${cameraStatus === "granted" ? "Haken" : "Kreuz"}`}/>
|
||||
<p>Kamera-Berechtigung</p>
|
||||
</div>
|
||||
</OldButton>
|
||||
|
||||
</div>
|
||||
<br></br>
|
||||
<div className={styles["status-row"]}>
|
||||
<OldButton
|
||||
disabled={isGPSPermissionLoading || gpsStatus === "granted"}
|
||||
onAction={requestGPSPermission}
|
||||
>GPS-Berechtigung</OldButton>
|
||||
>
|
||||
<div className="center-flex" style={{flexDirection: "row"}}>
|
||||
<img className={styles["status-icon"]} src={gpsStatus === "granted" ? "/icons/haken.svg" : "/icons/kreuz.svg"} alt={`Status Symbol: ${gpsStatus === "granted" ? "Haken" : "Kreuz"}`}/>
|
||||
<p>GPS-Berechtigung</p>
|
||||
</div>
|
||||
</OldButton>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user