Skip to content

Commit

Permalink
chore: reformat with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Aug 15, 2023
1 parent 3814040 commit ab62adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as Tooltip from '@radix-ui/react-tooltip'
import { Notification, NotificationStatus } from '@supabase/shared-types/out/notifications'
import { useQuery, useQueryClient } from '@tanstack/react-query'
import { useQueryClient } from '@tanstack/react-query'
import dayjs from 'dayjs'
import { useState } from 'react'

import { notificationKeys } from 'data/notifications/keys'
import { useProjectsQuery } from 'data/projects/projects-query'
import { useStore } from 'hooks'
import { delete_, get } from 'lib/common/fetch'
import { delete_ } from 'lib/common/fetch'
import { API_URL } from 'lib/constants'
import { Project } from 'types'
import { Button, IconX } from 'ui'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import dayjs from 'dayjs'
import { Project } from 'types'
import {
Action,
ActionReason,
ActionType,
ExtensionsUpgrade,
Notification,
Expand All @@ -14,10 +13,7 @@ import {
import { IconArrowRight, IconExternalLink, Button } from 'ui'
import Link from 'next/link'

export const formatNotificationText = (
project: Project,
notification: Notification,
) => {
export const formatNotificationText = (project: Project, notification: Notification) => {
const projectName = project.name

if (notification.data.name === NotificationName.ProjectExceedingTierLimit) {
Expand Down Expand Up @@ -159,9 +155,7 @@ export const formatNotificationText = (
}
}

export const formatNotificationCTAText = (
availableActions: Action[],
) => {
export const formatNotificationCTAText = (availableActions: Action[]) => {
const [action] = availableActions
if (!action) return <p className="text-sm"></p>

Expand Down

0 comments on commit ab62adf

Please sign in to comment.