Skip to content

Commit 334d28e

Browse files
committed
clean imports
1 parent 47061d3 commit 334d28e

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

api/src/routes/get-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import { zValidator } from '@hono/zod-validator'
12
import { HTTPException } from 'hono/http-exception'
3+
import z from 'zod'
24
import { ConfigStorageService } from '@shared/config-storage-service'
35
import { AWS_PREFIX } from '@shared/defines'
46
import { PRESET_IDS, TOOLS } from '@shared/types'
@@ -12,8 +14,6 @@ import type {
1214
} from '@shared/types'
1315
import { app } from '../app.js'
1416
import { createHTTPException } from '../utils/utils.js'
15-
import { zValidator } from '@hono/zod-validator'
16-
import z from 'zod'
1717

1818
app.get(
1919
'/config/:tool',

api/src/routes/probabilistic-revshare.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { HTTPException } from 'hono/http-exception'
2+
import { zValidator } from '@hono/zod-validator'
3+
import z from 'zod'
24
import type { ContentfulStatusCode } from 'hono/utils/http-status'
35
import type { WalletAddress } from '@interledger/open-payments'
46
import { decode, pickWeightedRandom } from '@shared/probabilistic-revenue-share'
57
import { isWalletAddress, validateWalletAddressOrPointer } from '@shared/utils'
68
import { createHTTPException } from '../utils/utils'
7-
import { zValidator } from '@hono/zod-validator'
8-
import z from 'zod'
99

1010
import { app } from '../app.js'
1111

frontend/app/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import type z from 'zod'
12
import type {
23
createBannerSchema,
34
createButtonSchema,
45
createWidgetSchema
56
} from '../utils/validate.server.js'
67
import type { ElementConfigType } from '@shared/types'
7-
import type z from 'zod'
88

99
export type ModalType = {
1010
type:

frontend/app/utils/validate.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import z from 'zod'
12
import {
23
bannerFieldsSchema,
34
buttonFieldsSchema,
45
widgetFieldsSchema
56
} from './validate.shared'
67
import type { ElementConfigType } from '@shared/types'
7-
import z from 'zod'
88

99
export const elementConfigStorageSchema = z.object({
1010
versionName: z.string(),

frontend/app/utils/validate.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import z from 'zod'
12
import {
23
checkHrefFormat,
34
getWalletAddress,
@@ -14,7 +15,6 @@ import type {
1415
PaymentStatusRejected,
1516
PaymentStatusSuccess
1617
} from 'publisher-tools-api'
17-
import z from 'zod'
1818

1919
export const walletSchema = z.object({
2020
walletAddress: z

frontend/app/utils/validate.shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import z from 'zod'
12
import {
23
CORNER_OPTION,
34
BANNER_POSITION,
@@ -11,7 +12,6 @@ import {
1112
WIDGET_TITLE_MAX_LENGTH,
1213
WIDGET_DESCRIPTION_MAX_LENGTH
1314
} from '@shared/types'
14-
import z from 'zod'
1515

1616
const bannerFontSizeError = {
1717
message: `Font size must be between ${BANNER_FONT_SIZES.min} and ${BANNER_FONT_SIZES.max}`

0 commit comments

Comments
 (0)