Skip to content

Commit

Permalink
fix: fix lint, prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tamssokari committed Aug 28, 2024
1 parent 6756322 commit 7136afe
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 33 deletions.
6 changes: 3 additions & 3 deletions previews/app/routes/products.$productName.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { LoaderFunctionArgs } from '@remix-run/node';
import { useLoaderData } from '@remix-run/react';
import { useState, useEffect } from 'react';
import { useState } from 'react';
import { Resource } from 'sst';
import products from '~/data/products.json';

declare global {
interface Window {
SmileIdentity: Function;
SmileIdentity: function;
}
}

Expand Down Expand Up @@ -83,7 +83,7 @@ export default function Product() {
...config,
document_ids: [config.document_id],
document_capture_modes: (
(config.document_capture_modes as String) ?? ''
(config.document_capture_modes as string) ?? ''
).split(','),
partner_details: {
partner_id: config.partner_id,
Expand Down
56 changes: 28 additions & 28 deletions previews/sst-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
/* tslint:disable */
/* eslint-disable */
import "sst"
declare module "sst" {
import 'sst';
declare module 'sst' {
export interface Resource {
"CallbackUrl": {
"type": "sst.sst.Secret"
"value": string
}
"GetToken": {
"name": string
"type": "sst.aws.Function"
"url": string
}
"PartnerId": {
"type": "sst.sst.Secret"
"value": string
}
"PreviewApp": {
"type": "sst.aws.Remix"
"url": string
}
"SmileIdApiKey": {
"type": "sst.sst.Secret"
"value": string
}
"SmileIdEnvironment": {
"type": "sst.sst.Secret"
"value": string
}
CallbackUrl: {
type: 'sst.sst.Secret';
value: string;
};
GetToken: {
name: string;
type: 'sst.aws.Function';
url: string;
};
PartnerId: {
type: 'sst.sst.Secret';
value: string;
};
PreviewApp: {
type: 'sst.aws.Remix';
url: string;
};
SmileIdApiKey: {
type: 'sst.sst.Secret';
value: string;
};
SmileIdEnvironment: {
type: 'sst.sst.Secret';
value: string;
};
}
}
export {}
export {};
2 changes: 0 additions & 2 deletions previews/sst.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference path="./.sst/platform/config.d.ts" />

export default $config({
app(input) {
return {
Expand Down

0 comments on commit 7136afe

Please sign in to comment.