Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
small PR fixes
Sara Vieiraa4e78cfd9882
diff --git a/app/dashboard/dashboard.tsx b/app/dashboard/dashboard.tsxindex 8f277c8700..08225c6e18 100644--- a/app/dashboard/dashboard.tsx+++ b/app/dashboard/dashboard.tsx@@ -20,7 +20,6 @@ import {import interStyles from "~/shared/font-faces/inter.css";import dashboardStyles from "./dashboard.css";import { User } from "@prisma/client";-import { UserIcon } from "~/shared/icons/user";import { ChevronDownIcon } from "@radix-ui/react-icons";export const links = () => {@@ -51,7 +50,7 @@ const StyledFallback = styled(Avatar.Fallback, {type DashboardProps = {projects?: Array<{ id: string; title: string }>;- user?: User;+ user: User;config: { designerPath: "string" };};diff --git a/app/routes/auth/github/callback.tsx b/app/routes/auth/github/callback.tsxindex fbbfa77838..179329416a 100644--- a/app/routes/auth/github/callback.tsx+++ b/app/routes/auth/github/callback.tsx@@ -5,7 +5,7 @@ import { ensureUserCookie } from "~/shared/session";export const loader: LoaderFunction = async ({ request }) => {const { userId } = await ensureUserCookie(request);- return authenticator.authenticate("github", request, {+ return await authenticator.authenticate("github", request, {context: {userId,},diff --git a/app/routes/auth/google/callback.tsx b/app/routes/auth/google/callback.tsxindex f56616122d..0109f11866 100644--- a/app/routes/auth/google/callback.tsx+++ b/app/routes/auth/google/callback.tsx@@ -5,7 +5,7 @@ import { ensureUserCookie } from "~/shared/session";export const loader: LoaderFunction = async ({ request }) => {const { userId } = await ensureUserCookie(request);- return authenticator.authenticate("google", request, {+ return await authenticator.authenticate("google", request, {successRedirect: config.dashboardPath,failureRedirect: config.loginPath,context: {diff --git a/app/routes/logout.tsx b/app/routes/logout.tsxindex 3a81f6b2cf..b1ab7ebb2d 100644--- a/app/routes/logout.tsx+++ b/app/routes/logout.tsx@@ -2,8 +2,8 @@ import { ActionFunction } from "@remix-run/node";import config from "~/config";import { authenticator } from "~/services/auth.server";-export default function Login() {- return "";+export default function Logout() {+ return null;}export const loader: ActionFunction = async ({ request }) => {diff --git a/app/shared/db/user.server.ts b/app/shared/db/user.server.tsindex b87f24b75c..5dd798f11e 100644--- a/app/shared/db/user.server.ts+++ b/app/shared/db/user.server.ts@@ -12,10 +12,10 @@ const genericCreateAccount = async (},userId: string): Promise<User> => {- const userExists = await prisma.user.findUnique({+ const existingUser = await prisma.user.findUnique({where: { id: userId },});- if (userExists) {+ if (existingUser) {const connectedUser = await prisma.user.update({where: {id: userId,diff --git a/app/shared/icons/user.tsx b/app/shared/icons/user.tsxdeleted file mode 100644index 6cfca75da8..0000000000--- a/app/shared/icons/user.tsx+++ /dev/null@@ -1,33 +0,0 @@-import * as React from "react";-import { IconProps } from "./types";--export const UserIcon = React.forwardRef<SVGSVGElement, IconProps>(- ({ color = "currentColor", ...props }, forwardedRef) => {- return (- <svg- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- fill="none"- x="0px"- y="0px"- {...props}- ref={forwardedRef}- >- <path- fillRule="evenodd"- clipRule="evenodd"- d="M12 3.5a8.5 8.5 0 100 17 8.5 8.5 0 000-17zM2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z"- fill={color}- />- <path- fillRule="evenodd"- clipRule="evenodd"- d="M12 7.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5zM8.5 10a3.5 3.5 0 117 0 3.5 3.5 0 01-7 0zM12 16a6.497 6.497 0 00-5.63 3.25l-.866-.5A7.497 7.497 0 0112 15c2.777 0 5.2 1.51 6.497 3.75l-.866.5a6.497 6.497 0 00-5.63-3.25z"- fill={color}- />- </svg>- );- }-);--UserIcon.displayName = "UserIcon";