mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-06-06 19:16:19 +00:00
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m23s
- Updated payment verification logic in `actions/payment.ts` to remove unused code and improve clarity. - Enhanced `DevicesToPay` component to handle separate states for wallet and transfer payment verification. - Introduced a new `GetMacAccordion` component to guide users on finding their MAC addresses. - Created a reusable accordion component in `ui/accordion.tsx` for better UI consistency. - Integrated the MAC address guide into the device addition dialog. - Updated Tailwind CSS configuration to include animations for the accordion component. - Added Radix UI Accordion dependency to package.json and package-lock.json. - Improved error handling in API response utility to log unauthorized responses.
61 lines
2.2 KiB
XML
61 lines
2.2 KiB
XML
import {
|
|
Accordion,
|
|
AccordionContent,
|
|
AccordionItem,
|
|
AccordionTrigger,
|
|
} from "@/components/ui/accordion"
|
|
|
|
export function GetMacAccordion() {
|
|
return (
|
|
<Accordion
|
|
type="single"
|
|
collapsible
|
|
className="w-full"
|
|
>
|
|
<AccordionItem value="item-1">
|
|
<AccordionTrigger>How do I find my MAC Address?</AccordionTrigger>
|
|
<AccordionContent className="flex flex-col gap-4 text-balance">
|
|
<p>
|
|
A MAC (Media Access Control) address is a unique identifier assigned
|
|
to a device's network. It is used to identify the device on a
|
|
network, helping to differentiate devices on a network.
|
|
</p>
|
|
<Accordion type="single" collapsible className="w-full">
|
|
<AccordionItem value="iphone">
|
|
<AccordionTrigger>iPhone</AccordionTrigger>
|
|
<AccordionContent>
|
|
Settings ➜ General ➜ About ➜ Wi-Fi Address
|
|
</AccordionContent>
|
|
</AccordionItem>
|
|
<AccordionItem value="redmi">
|
|
<AccordionTrigger>Redmi</AccordionTrigger>
|
|
<AccordionContent>
|
|
Settings ➜ About ➜ Wi-Fi MAC Address
|
|
</AccordionContent>
|
|
</AccordionItem>
|
|
<AccordionItem value="samsung">
|
|
<AccordionTrigger>Samsung</AccordionTrigger>
|
|
<AccordionContent>
|
|
Settings ➜ About phone ➜ Status Information ➜ Wi-Fi MAC Address
|
|
</AccordionContent>
|
|
</AccordionItem>
|
|
<AccordionItem value="windows">
|
|
<AccordionTrigger>Windows Laptop</AccordionTrigger>
|
|
<AccordionContent>
|
|
Settings ➜ Network and Internet ➜ Wi-Fi ➜ Hardware
|
|
Properties ➜ Physical address (MAC):
|
|
</AccordionContent>
|
|
</AccordionItem>
|
|
<AccordionItem value="other">
|
|
<AccordionTrigger>Other Device</AccordionTrigger>
|
|
<AccordionContent>
|
|
Please contact SAR Link for assistance.
|
|
</AccordionContent>
|
|
</AccordionItem>
|
|
</Accordion>
|
|
</AccordionContent>
|
|
</AccordionItem>
|
|
</Accordion>
|
|
)
|
|
}
|