Skip to content

Commit ec27332

Browse files
authored
Last part of removing barrel files (supabase#39957)
1 parent 383f00e commit ec27332

File tree

29 files changed

+65
-120
lines changed

29 files changed

+65
-120
lines changed

apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { DOCS_RESOURCE_CONTENT } from '../ProjectAPIDocs.constants'
88
import ResourceContent from '../ResourceContent'
99
import type { ContentProps } from './Content.types'
1010

11-
const Bucket = ({ language, apikey, endpoint }: ContentProps) => {
11+
export const Bucket = ({ language, apikey, endpoint }: ContentProps) => {
1212
const { ref } = useParams()
1313
const snap = useAppStateSnapshot()
1414
const { data } = useBucketsQuery({ projectRef: ref })
@@ -106,5 +106,3 @@ const Bucket = ({ language, apikey, endpoint }: ContentProps) => {
106106
</div>
107107
)
108108
}
109-
110-
export default Bucket

apps/studio/components/interfaces/ProjectAPIDocs/Content/EdgeFunction.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { DOCS_RESOURCE_CONTENT } from '../ProjectAPIDocs.constants'
66
import ResourceContent from '../ResourceContent'
77
import type { ContentProps } from './Content.types'
88

9-
const Bucket = ({ language, apikey = 'API_KEY', endpoint }: ContentProps) => {
9+
export const EdgeFunction = ({ language, apikey = 'API_KEY', endpoint }: ContentProps) => {
1010
const { ref } = useParams()
1111
const snap = useAppStateSnapshot()
1212
const { data } = useEdgeFunctionsQuery({ projectRef: ref })
@@ -37,5 +37,3 @@ const Bucket = ({ language, apikey = 'API_KEY', endpoint }: ContentProps) => {
3737
</div>
3838
)
3939
}
40-
41-
export default Bucket

apps/studio/components/interfaces/ProjectAPIDocs/Content/EdgeFunctions.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ContentSnippet from '../ContentSnippet'
22
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
33
import type { ContentProps } from './Content.types'
44

5-
const EdgeFunctions = ({ language }: ContentProps) => {
5+
export const EdgeFunctions = ({ language }: ContentProps) => {
66
return (
77
<>
88
<ContentSnippet selectedLanguage={language} snippet={DOCS_CONTENT.edgeFunctions} />
@@ -12,5 +12,3 @@ const EdgeFunctions = ({ language }: ContentProps) => {
1212
</>
1313
)
1414
}
15-
16-
export default EdgeFunctions

apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import ContentSnippet from '../ContentSnippet'
1212
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
1313
import type { ContentProps } from './Content.types'
1414

15-
const Entities = ({ language }: ContentProps) => {
15+
export const Entities = ({ language }: ContentProps) => {
1616
const { ref } = useParams()
1717
const [isGeneratingTypes, setIsGeneratingTypes] = useState(false)
1818

@@ -62,5 +62,3 @@ const Entities = ({ language }: ContentProps) => {
6262
</>
6363
)
6464
}
65-
66-
export default Entities

apps/studio/components/interfaces/ProjectAPIDocs/Content/Entity.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function getColumnType(type: string, format: string) {
3030
}
3131
}
3232

33-
const Entity = ({ language, apikey = '', endpoint = '' }: ContentProps) => {
33+
export const Entity = ({ language, apikey = '', endpoint = '' }: ContentProps) => {
3434
const { ref } = useParams()
3535
const snap = useAppStateSnapshot()
3636
const resource = snap.activeDocsSection[1]
@@ -144,5 +144,3 @@ const Entity = ({ language, apikey = '', endpoint = '' }: ContentProps) => {
144144
</div>
145145
)
146146
}
147-
148-
export default Entity

apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ContentSnippet from '../ContentSnippet'
1111
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
1212
import type { ContentProps } from './Content.types'
1313

14-
const Introduction = ({ showKeys, language, apikey, endpoint }: ContentProps) => {
14+
export const Introduction = ({ showKeys, language, apikey, endpoint }: ContentProps) => {
1515
const { ref } = useParams()
1616
const { data: apiKeys } = useAPIKeysQuery({ projectRef: ref })
1717
const { data } = useProjectSettingsV2Query({ projectRef: ref })
@@ -139,5 +139,3 @@ const Introduction = ({ showKeys, language, apikey, endpoint }: ContentProps) =>
139139
</>
140140
)
141141
}
142-
143-
export default Introduction

apps/studio/components/interfaces/ProjectAPIDocs/Content/Realtime.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ContentSnippet from '../ContentSnippet'
22
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
33
import type { ContentProps } from './Content.types'
44

5-
const Realtime = ({ language }: ContentProps) => {
5+
export const Realtime = ({ language }: ContentProps) => {
66
return (
77
<>
88
<ContentSnippet selectedLanguage={language} snippet={DOCS_CONTENT.realtime} />
@@ -13,5 +13,3 @@ const Realtime = ({ language }: ContentProps) => {
1313
</>
1414
)
1515
}
16-
17-
export default Realtime

apps/studio/components/interfaces/ProjectAPIDocs/Content/Storage.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ import ContentSnippet from '../ContentSnippet'
22
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
33
import type { ContentProps } from './Content.types'
44

5-
const Storage = ({ language }: ContentProps) => {
5+
export const Storage = ({ language }: ContentProps) => {
66
return (
77
<>
88
<ContentSnippet selectedLanguage={language} snippet={DOCS_CONTENT.storage} />
99
</>
1010
)
1111
}
12-
13-
export default Storage

apps/studio/components/interfaces/ProjectAPIDocs/Content/StoredProcedures.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ContentSnippet from '../ContentSnippet'
22
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
33
import type { ContentProps } from './Content.types'
44

5-
const StoredProcedures = ({ language }: ContentProps) => {
5+
export const StoredProcedures = ({ language }: ContentProps) => {
66
return (
77
<>
88
<ContentSnippet
@@ -12,5 +12,3 @@ const StoredProcedures = ({ language }: ContentProps) => {
1212
</>
1313
)
1414
}
15-
16-
export default StoredProcedures

apps/studio/components/interfaces/ProjectAPIDocs/Content/UserManagement.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ContentSnippet from '../ContentSnippet'
33
import { DOCS_CONTENT } from '../ProjectAPIDocs.constants'
44
import type { ContentProps } from './Content.types'
55

6-
const UserManagement = ({ language, apikey, endpoint }: ContentProps) => {
6+
export const UserManagement = ({ language, apikey, endpoint }: ContentProps) => {
77
const { authenticationSignInProviders } = useIsFeatureEnabled([
88
'authentication:sign_in_providers',
99
])
@@ -87,5 +87,3 @@ const UserManagement = ({ language, apikey, endpoint }: ContentProps) => {
8787
</>
8888
)
8989
}
90-
91-
export default UserManagement

0 commit comments

Comments
 (0)