diff --git a/app/client/ui/ProductUpgradesStub.ts b/app/client/ui/ProductUpgradesStub.ts new file mode 100644 index 00000000..5e078ffb --- /dev/null +++ b/app/client/ui/ProductUpgradesStub.ts @@ -0,0 +1,27 @@ +import type {AppModel} from 'app/client/models/AppModel'; +import {commonUrls} from 'app/common/gristUrls'; +import {Disposable} from 'grainjs'; + +export function buildUpgradeNudge(options: { + onClose: () => void; + onUpgrade: () => void +}) { + return null; +} + +export function buildNewSiteModal(owner: Disposable, current: string | null) { + window.location.href = commonUrls.plans; +} + +export function buildUpgradeModal(owner: Disposable, planName: string) { + window.location.href = commonUrls.plans; +} + +export class UpgradeButton extends Disposable { + constructor(appModel: AppModel) { + super(); + } + public buildDom() { + return null; + } +} diff --git a/stubs/app/client/ui/ProductUpgrades.ts b/stubs/app/client/ui/ProductUpgrades.ts index 5e078ffb..2c583135 100644 --- a/stubs/app/client/ui/ProductUpgrades.ts +++ b/stubs/app/client/ui/ProductUpgrades.ts @@ -1,27 +1 @@ -import type {AppModel} from 'app/client/models/AppModel'; -import {commonUrls} from 'app/common/gristUrls'; -import {Disposable} from 'grainjs'; - -export function buildUpgradeNudge(options: { - onClose: () => void; - onUpgrade: () => void -}) { - return null; -} - -export function buildNewSiteModal(owner: Disposable, current: string | null) { - window.location.href = commonUrls.plans; -} - -export function buildUpgradeModal(owner: Disposable, planName: string) { - window.location.href = commonUrls.plans; -} - -export class UpgradeButton extends Disposable { - constructor(appModel: AppModel) { - super(); - } - public buildDom() { - return null; - } -} +export * from 'app/client/ui/ProductUpgradesStub';