Skip to content

Commit 2e00c2b

Browse files
committed
chore(react-mini-app): reorder exports
1 parent d095561 commit 2e00c2b

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

packages/mini-app-react/src/index.ts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1+
/* eslint-disable perfectionist/sort-exports */
2+
3+
// mini app
14
export type { MiniApp } from './context.ts'
25
export { MiniAppContext } from './context.ts'
3-
export type { UseBackButtonOptions } from './hooks/useBackButton.ts'
4-
export { useBackButton } from './hooks/useBackButton.ts'
6+
export { useMiniApp } from './hooks/useMiniApp.ts'
7+
8+
// theme
9+
export type { UseThemeReturn } from './hooks/useTheme.ts'
10+
export { useTheme } from './hooks/useTheme.ts'
11+
12+
// main button
513
export type { UseMainButtonOptions } from './hooks/useMainButton.ts'
614
export { useMainButton } from './hooks/useMainButton.ts'
7-
export { useMiniApp } from './hooks/useMiniApp.ts'
15+
16+
// secondary button
817
export type { UseSecondaryButtonOptions } from './hooks/useSecondaryButton.ts'
918
export { useSecondaryButton } from './hooks/useSecondaryButton.ts'
19+
20+
// back button
21+
export type { UseBackButtonOptions } from './hooks/useBackButton.ts'
22+
export { useBackButton } from './hooks/useBackButton.ts'
23+
24+
// settings button
1025
export type { UseSettingsButtonOptions } from './hooks/useSettingsButton.ts'
1126
export { useSettingsButton } from './hooks/useSettingsButton.ts'
12-
export type { UseThemeReturn } from './hooks/useTheme.ts'
13-
export { useTheme } from './hooks/useTheme.ts'

0 commit comments

Comments
 (0)