Skip to content

Commit

Permalink
types: remove IBottleData and let host application define it
Browse files Browse the repository at this point in the history
  • Loading branch information
giannif committed Apr 24, 2024
1 parent 702480d commit e436a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/components/gif.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ const Gif = ({
}
const trackWithMoat = async () => {
if (shouldShowMedia && container.current) {
const { bottle_data: bottleData, response_id } = gif
const moatCompatibleData = constructMoatData(bottleData as any)
const { bottle_data, response_id } = gif
const moatCompatibleData = constructMoatData(bottle_data as any)
if (moatCompatibleData) {
moatCompatibleData.zMoatSession = response_id
await moatLoader
Expand Down
10 changes: 1 addition & 9 deletions packages/types/src/gif.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ import { IImages } from './images'
import IUser from './user'
import IVideo from './video'

interface IBottleData {
tid?: string
tags?: string[]
tdata?: {
click_out_url?: string
}
}

export type GifID = string | number

export default interface IGif {
Expand Down Expand Up @@ -37,7 +29,7 @@ export default interface IGif {
is_scheduled: boolean
is_removed: boolean
tags: string[]
bottle_data: IBottleData
bottle_data: any
response_id: string
analytics_response_payload: string
video?: IVideo
Expand Down

0 comments on commit e436a4e

Please sign in to comment.