mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-04-20 03:50:20 +00:00
fix: remove unused type prop from BlockDeviceDialog component
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m16s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m16s
This commit is contained in:
parent
6365a701ba
commit
de1e842145
@ -1,11 +1,9 @@
|
|||||||
import BlockDeviceDialog from "@/components/block-device-dialog";
|
|
||||||
import ClientErrorMessage from "@/components/client-error-message";
|
import ClientErrorMessage from "@/components/client-error-message";
|
||||||
import Search from "@/components/search";
|
import Search from "@/components/search";
|
||||||
import { Badge } from "@/components/ui/badge";
|
import { Badge } from "@/components/ui/badge";
|
||||||
import { getDevice } from "@/queries/devices";
|
import { getDevice } from "@/queries/devices";
|
||||||
import { tryCatch } from "@/utils/tryCatch";
|
import { tryCatch } from "@/utils/tryCatch";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import React from "react";
|
|
||||||
|
|
||||||
export default async function DeviceDetails({
|
export default async function DeviceDetails({
|
||||||
params,
|
params,
|
||||||
|
@ -30,7 +30,6 @@ const validationSchema = z.object({
|
|||||||
|
|
||||||
export default function BlockDeviceDialog({
|
export default function BlockDeviceDialog({
|
||||||
device,
|
device,
|
||||||
type,
|
|
||||||
admin,
|
admin,
|
||||||
}: { device: Device; type: "block" | "unblock"; admin?: boolean }) {
|
}: { device: Device; type: "block" | "unblock"; admin?: boolean }) {
|
||||||
const [disabled, setDisabled] = useState(false);
|
const [disabled, setDisabled] = useState(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user