Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix broken imports

Paul Copplestone593c2638b7f3
diff --git a/www/components/container.tsx b/www/components/container.tsx
index 057b97947aa..cbe54e9cb55 100644
--- a/www/components/container.tsx
+++ b/www/components/container.tsx
@@ -1,5 +1,4 @@
import { ReactNode, FunctionComponent } from 'react'
-import Navigation from './navigation'
type Props = {
children?: ReactNode
diff --git a/www/components/index_sections/CodeExamples.tsx b/www/components/index_sections/CodeExamples.tsx
index 9fb1d334fe0..6362f7e9f89 100644
--- a/www/components/index_sections/CodeExamples.tsx
+++ b/www/components/index_sections/CodeExamples.tsx
@@ -4,7 +4,7 @@ import { Light as SyntaxHighlighter } from 'react-syntax-highlighter'
import js from 'react-syntax-highlighter/dist/cjs/languages/hljs/javascript'
import rainbow from 'react-syntax-highlighter/dist/cjs/styles/hljs/rainbow'
-import { CopyToClipboard } from 'react-copy-to-clipboard'
+import CopyToClipboard from 'react-copy-to-clipboard'
import { examples } from './../../data/CodeExamples'
diff --git a/www/package-lock.json b/www/package-lock.json
index 4d787852ad2..79512375f0a 100644
--- a/www/package-lock.json
+++ b/www/package-lock.json
@@ -410,6 +410,15 @@
"@types/prop-types": "*"
}
},
+ "@types/react-copy-to-clipboard": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@types/react-copy-to-clipboard/-/react-copy-to-clipboard-4.3.0.tgz",
+ "integrity": "sha512-iideNPRyroENqsOFh1i2Dv3zkviYS9r/9qD9Uh3Z9NNoAAqqa2x53i7iGndGNnJFIo20wIu7Hgh77tx1io8bgw==",
+ "dev": true,
+ "requires": {
+ "@types/react": "*"
+ }
+ },
"@types/react-dom": {
"version": "16.9.10",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-16.9.10.tgz",
diff --git a/www/package.json b/www/package.json
index 4826ef8d1a2..c5bf184dea5 100644
--- a/www/package.json
+++ b/www/package.json
@@ -6,6 +6,7 @@
"scripts": {
"dev": "next",
"build": "next build",
+ "export": "next export",
"start": "next start",
"typecheck": "tsc"
},
@@ -27,6 +28,7 @@
"@types/jest": "^25.2.2",
"@types/node": "^14.0.1",
"@types/react": "^16.9.35",
+ "@types/react-copy-to-clipboard": "^4.3.0",
"@types/react-dom": "^16.9.8",
"@types/react-syntax-highlighter": "^13.5.0",
"file-loader": "^6.2.0",