Skip to content

Commit 72d50d8

Browse files
authored
Remove barrel files part 1 (supabase#39955)
1 parent 3b533cc commit 72d50d8

File tree

64 files changed

+84
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+84
-174
lines changed

apps/studio/components/grid/components/grid/ColumnHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { FOREIGN_KEY_CASCADE_ACTION } from 'data/database/database-query-constan
88
import { useTableEditorTableStateSnapshot } from 'state/table-editor-table'
99
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
1010
import type { ColumnHeaderProps, ColumnType, DragItem, GridForeignKey } from '../../types'
11-
import { ColumnMenu } from '../menu'
11+
import { ColumnMenu } from '../menu/ColumnMenu'
1212

1313
export function ColumnHeader<R>({
1414
column,

apps/studio/components/grid/components/menu/ColumnMenu.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface ColumnMenuProps {
2323
isEncrypted?: boolean
2424
}
2525

26-
const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
26+
export const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
2727
const tableEditorSnap = useTableEditorStateSnapshot()
2828
const snap = useTableEditorTableStateSnapshot()
2929
const { sorts, addOrUpdateSort, removeSort } = useTableSort()
@@ -163,5 +163,3 @@ const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
163163
</>
164164
)
165165
}
166-
167-
export default ColumnMenu

apps/studio/components/grid/components/menu/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/studio/components/interfaces/Account/AuditLogs.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ArrowDown, ArrowUp, RefreshCw } from 'lucide-react'
33
import { useEffect, useMemo, useState } from 'react'
44

55
import { useDebounce } from '@uidotdev/usehooks'
6-
import { LogDetailsPanel } from 'components/interfaces/AuditLogs'
6+
import { LogDetailsPanel } from 'components/interfaces/AuditLogs/LogDetailsPanel'
77
import Table from 'components/to-be-cleaned/Table'
88
import AlertError from 'components/ui/AlertError'
99
import { ButtonTooltip } from 'components/ui/ButtonTooltip'
@@ -17,7 +17,7 @@ import { Button } from 'ui'
1717
import { TimestampInfo } from 'ui-patterns'
1818
import { LogsDatePicker } from '../Settings/Logs/Logs.DatePickers'
1919

20-
const AuditLogs = () => {
20+
export const AuditLogs = () => {
2121
const currentTime = dayjs().utc().set('millisecond', 0)
2222

2323
const [search, setSearch] = useState('')
@@ -294,5 +294,3 @@ const AuditLogs = () => {
294294
</>
295295
)
296296
}
297-
298-
export default AuditLogs

apps/studio/components/interfaces/Account/Preferences/AccountConnections.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Github } from 'lucide-react'
21
import Image from 'next/image'
32

43
import Panel from 'components/ui/Panel'
@@ -8,7 +7,7 @@ import { openInstallGitHubIntegrationWindow } from 'lib/github'
87
import { Badge, Button, cn } from 'ui'
98
import ShimmeringLoader from 'ui-patterns/ShimmeringLoader'
109

11-
const AccountConnections = () => {
10+
export const AccountConnections = () => {
1211
const {
1312
data: gitHubAuthorization,
1413
isLoading,
@@ -78,5 +77,3 @@ const AccountConnections = () => {
7877
</Panel>
7978
)
8079
}
81-
82-
export { AccountConnections }

apps/studio/components/interfaces/Account/TOTPFactors/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { AlertDescription_Shadcn_, AlertTitle_Shadcn_, Alert_Shadcn_, Button } f
1010
import { AddNewFactorModal } from './AddNewFactorModal'
1111
import DeleteFactorModal from './DeleteFactorModal'
1212

13-
const TOTPFactors = () => {
13+
export const TOTPFactors = () => {
1414
const [isAddNewFactorOpen, setIsAddNewFactorOpen] = useState(false)
1515
const [factorToBeDeleted, setFactorToBeDeleted] = useState<string | null>(null)
1616
const { data, isLoading, isError, isSuccess, error } = useMfaListFactorsQuery()
@@ -88,5 +88,3 @@ const TOTPFactors = () => {
8888
</>
8989
)
9090
}
91-
92-
export default TOTPFactors

apps/studio/components/interfaces/Account/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

apps/studio/components/interfaces/App/AppBannerWrapper.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import IncidentBanner from 'components/layouts/AppLayout/IncidentBanner'
66
import { NoticeBanner } from 'components/layouts/AppLayout/NoticeBanner'
77
import { OrganizationResourceBanner } from '../Organization/HeaderBanner'
88

9-
const AppBannerWrapper = ({ children }: PropsWithChildren<{}>) => {
9+
export const AppBannerWrapper = ({ children }: PropsWithChildren<{}>) => {
1010
const ongoingIncident = useFlag('ongoingIncident')
1111
const showNoticeBanner = useFlag('showNoticeBanner')
1212
const clockSkewBanner = useFlag('clockSkewBanner')
@@ -23,5 +23,3 @@ const AppBannerWrapper = ({ children }: PropsWithChildren<{}>) => {
2323
</div>
2424
)
2525
}
26-
27-
export default AppBannerWrapper

apps/studio/components/interfaces/App/CommandMenu/Support.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { LifeBuoy, Activity } from 'lucide-react'
1+
import { Activity, LifeBuoy } from 'lucide-react'
22
import { useMemo } from 'react'
33

44
import { IS_PLATFORM } from 'common'
55
import type { ICommand } from 'ui-patterns/CommandMenu'
66
import { useRegisterCommands } from 'ui-patterns/CommandMenu'
77
import { COMMAND_MENU_SECTIONS } from './CommandMenu.utils'
88

9-
const useSupportCommands = () => {
9+
export const useSupportCommands = () => {
1010
const commands = useMemo(
1111
() =>
1212
[
@@ -37,5 +37,3 @@ const useSupportCommands = () => {
3737

3838
useRegisterCommands(COMMAND_MENU_SECTIONS.SUPPORT, commands, { enabled: IS_PLATFORM })
3939
}
40-
41-
export { useSupportCommands }

apps/studio/components/interfaces/App/CommandMenu/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import { useCommandMenuInitiated } from 'ui-patterns/CommandMenu'
44

55
const LazyCommandMenu = dynamic(() => import('./CommandMenu'), { ssr: false })
66

7-
const StudioCommandMenu = () => {
7+
export const StudioCommandMenu = () => {
88
const isInitiated = useCommandMenuInitiated()
99
return isInitiated && <LazyCommandMenu />
1010
}
11-
12-
export { StudioCommandMenu }

0 commit comments

Comments
 (0)