mirror of
https://github.com/Sevichecc/raycast-akkoma-extension.git
synced 2025-04-30 14:49:29 +08:00
fix: set proper error toast
This commit is contained in:
parent
7d9cf2509b
commit
803283e037
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { Form, ActionPanel, Action, showToast, popToRoot, LaunchProps } from "@raycast/api";
|
import { Form, ActionPanel, Action, showToast, popToRoot, LaunchProps,Toast } from "@raycast/api";
|
||||||
import { postNewStatus } from "./api";
|
import { postNewStatus } from "./api";
|
||||||
import { Status } from "./types";
|
import { Status } from "./types";
|
||||||
import { authorize } from "./oauth";
|
import { authorize } from "./oauth";
|
||||||
|
@ -33,7 +33,7 @@ export default function Command(props: LaunchProps<{ draftValues: Partial<Status
|
||||||
popToRoot();
|
popToRoot();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
showToast({ title: "Error", message: "Something went wrong!" });
|
showToast({ title: "Error", message: "Something went wrong!", style: Toast.Style.Failure });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue