diff --git a/.eslintrc.json b/.eslintrc.json
index a77ed5bd87..9d747b8796 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -4,6 +4,13 @@
"es2020": true,
"node": true
},
+ "extends": [
+ "eslint:recommended",
+ "plugin:prettier/recommended",
+ "plugin:import/recommended",
+ "plugin:@typescript-eslint/recommended",
+ "next"
+ ],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
@@ -12,13 +19,6 @@
"ecmaVersion": 11,
"sourceType": "module"
},
- "extends": [
- "eslint:recommended",
- "plugin:prettier/recommended",
- "plugin:import/recommended",
- "plugin:@typescript-eslint/recommended",
- "next"
- ],
"plugins": ["@typescript-eslint", "prettier"],
"settings": {
"import/resolver": {
diff --git a/package.json b/package.json
index fe3fa664c8..edc6b1e0d9 100644
--- a/package.json
+++ b/package.json
@@ -66,8 +66,8 @@
"@prisma/client": "5.4.2",
"@react-spring/web": "^9.7.3",
"@tanstack/react-query": "^4.33.0",
- "@umami/prisma-client": "^0.3.0",
- "@umami/redis-client": "^0.16.0",
+ "@umami/prisma-client": "^0.5.0",
+ "@umami/redis-client": "^0.17.0",
"chalk": "^4.1.1",
"chart.js": "^4.2.1",
"chartjs-adapter-date-fns": "^3.0.0",
diff --git a/src/app/(main)/settings/teams/[id]/TeamWebsiteAddForm.js b/src/app/(main)/settings/teams/[id]/TeamWebsiteAddForm.js
index 9c2ae7bd31..c83ec3d08e 100644
--- a/src/app/(main)/settings/teams/[id]/TeamWebsiteAddForm.js
+++ b/src/app/(main)/settings/teams/[id]/TeamWebsiteAddForm.js
@@ -2,11 +2,13 @@ import useApi from 'components/hooks/useApi';
import { useState } from 'react';
import { Button, Form, FormButtons, GridColumn, Loading, SubmitButton, Toggle } from 'react-basics';
import useMessages from 'components/hooks/useMessages';
-import WebsitesDataTable from '../../websites/WebsitesDataTable';
+import WebsitesDataTable from 'app/(main)/settings/websites/WebsitesDataTable';
import Empty from 'components/common/Empty';
import { setValue } from 'store/cache';
+import { useUser } from 'components/hooks';
export function TeamWebsiteAddForm({ teamId, onSave, onClose }) {
+ const { user } = useUser();
const { formatMessage, labels } = useMessages();
const { get, post, useQuery, useMutation } = useApi();
const { mutate, error } = useMutation(data => post(`/teams/${teamId}/websites`, data));
@@ -37,7 +39,7 @@ export function TeamWebsiteAddForm({ teamId, onSave, onClose }) {
{!isLoading && !hasData &&