mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39:16 +01:00
refactor: ♻️ Fix linter errors
This commit is contained in:
parent
8a984abfb2
commit
f9433e259b
30 changed files with 235 additions and 157 deletions
|
|
@ -43,7 +43,9 @@ const { relationship } = useRelationship(
|
|||
);
|
||||
|
||||
const acceptFollowRequest = async () => {
|
||||
if (!props.notification?.account) return;
|
||||
if (!props.notification?.account) {
|
||||
return;
|
||||
}
|
||||
isWorkingOnFollowRequest.value = true;
|
||||
const { data } = await client.value.acceptFollowRequest(
|
||||
props.notification.account.id,
|
||||
|
|
@ -53,7 +55,9 @@ const acceptFollowRequest = async () => {
|
|||
};
|
||||
|
||||
const rejectFollowRequest = async () => {
|
||||
if (!props.notification?.account) return;
|
||||
if (!props.notification?.account) {
|
||||
return;
|
||||
}
|
||||
isWorkingOnFollowRequest.value = true;
|
||||
const { data } = await client.value.rejectFollowRequest(
|
||||
props.notification.account.id,
|
||||
|
|
@ -69,7 +73,9 @@ const { display_name } = useParsedAccount(
|
|||
);
|
||||
|
||||
const text = computed(() => {
|
||||
if (!props.notification) return "";
|
||||
if (!props.notification) {
|
||||
return "";
|
||||
}
|
||||
|
||||
switch (props.notification.type) {
|
||||
case "mention":
|
||||
|
|
@ -82,13 +88,16 @@ const text = computed(() => {
|
|||
return "followed you";
|
||||
case "follow_request":
|
||||
return "requested to follow you";
|
||||
default:
|
||||
default: {
|
||||
console.error("Unknown notification type", props.notification.type);
|
||||
return "";
|
||||
}
|
||||
}
|
||||
});
|
||||
const icon = computed(() => {
|
||||
if (!props.notification) return "";
|
||||
if (!props.notification) {
|
||||
return "";
|
||||
}
|
||||
|
||||
switch (props.notification.type) {
|
||||
case "mention":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue