Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: invalid svg props (#854)

Tom Lienard551184e5867c
diff --git a/apps/og-image/app/components/logo.tsx b/apps/og-image/app/components/logo.tsx
index 45350d45..fccd6789 100644
--- a/apps/og-image/app/components/logo.tsx
+++ b/apps/og-image/app/components/logo.tsx
@@ -12,8 +12,8 @@ export function Logo() {
fill="#3178C6"
/>
<path
- fill-rule="evenodd"
- clip-rule="evenodd"
+ fillRule="evenodd"
+ clipRule="evenodd"
d="M211.466 282.064H269.474V242.526H107.789V282.064H165.513V458.105H211.466V282.064Z"
fill="white"
/>
diff --git a/apps/og-image/app/components/logo3d.tsx b/apps/og-image/app/components/logo3d.tsx
index 3893d95f..21ceadd1 100644
--- a/apps/og-image/app/components/logo3d.tsx
+++ b/apps/og-image/app/components/logo3d.tsx
@@ -13,8 +13,8 @@ export function Logo3d() {
fill="#3178C6"
/>
<path
- fill-rule="evenodd"
- clip-rule="evenodd"
+ fillRule="evenodd"
+ clipRule="evenodd"
d="M261.441 348.723H333.158V299.842H133.263V348.723H204.629V566.368H261.441V348.723Z"
fill="white"
/>
@@ -31,9 +31,9 @@ export function Logo3d() {
width="732"
height="732"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" />
<feColorMatrix
in="SourceAlpha"
diff --git a/apps/web/src/app/[locale]/_components/hero.tsx b/apps/web/src/app/[locale]/_components/hero.tsx
index 30cb3a97..31882178 100644
--- a/apps/web/src/app/[locale]/_components/hero.tsx
+++ b/apps/web/src/app/[locale]/_components/hero.tsx
@@ -20,8 +20,8 @@ function TypeHeroLogo3D() {
<rect width="637.029" height="637.029" rx="68.1096" fill="#3178C6" />
</g>
<path
- fill-rule="evenodd"
- clip-rule="evenodd"
+ fillRule="evenodd"
+ clipRule="evenodd"
d="M243.77 314.169H318.615V288.585V263H110V314.169H184.479V542H243.77V314.169Z"
fill="white"
/>
@@ -37,9 +37,9 @@ function TypeHeroLogo3D() {
width="736.029"
height="736.029"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" />
<feColorMatrix
in="SourceAlpha"
@@ -88,7 +88,7 @@ function BeamOfLight() {
ry="273.501"
transform="matrix(-0.822377 -0.568943 -0.568943 0.822377 2222.88 1131.09)"
fill="white"
- fill-opacity="0.21"
+ fillOpacity="0.21"
/>
</g>
<defs>
@@ -99,9 +99,9 @@ function BeamOfLight() {
width="3785.16"
height="2840.26"
filterUnits="userSpaceOnUse"
- color-interpolation-filters="sRGB"
+ colorInterpolationFilters="sRGB"
>
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
+ <feFlood floodOpacity="0" result="BackgroundImageFix" />
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" />
<feGaussianBlur stdDeviation="151" result="effect1_foregroundBlur_791_106" />
</filter>
diff --git a/apps/web/src/components/navigation.tsx b/apps/web/src/components/navigation.tsx
index 0f70843b..46ffed5a 100644
--- a/apps/web/src/components/navigation.tsx
+++ b/apps/web/src/components/navigation.tsx
@@ -1,7 +1,6 @@
'use client';
import { signIn, signOut, useSession } from '@repo/auth/react';
-import { type RoleTypes } from '@repo/db/types';
import { Button } from '@repo/ui/components/button';
import {
DropdownMenu,
@@ -30,17 +29,9 @@ export function getAdminUrl() {
return `http://localhost:3001`;
}
-const roleTypes: typeof RoleTypes = {
- USER: 'USER',
- ADMIN: 'ADMIN',
- MODERATOR: 'MODERATOR',
- CREATOR: 'CREATOR',
-};
-
export function Navigation() {
const { fssettings } = useFullscreenSettingsStore();
const pathname = usePathname();
- const { data } = useSession();
const featureFlags = useContext(FeatureFlagContext);
return (
@@ -65,8 +56,8 @@ export function Navigation() {
>
<rect width="38" height="38" rx="4.5" fill="#3178C6" />
<path
- fill-rule="evenodd"
- clip-rule="evenodd"
+ fillRule="evenodd"
+ clipRule="evenodd"
d="M15.6947 20.9344H20V18H8V20.9344H12.2842V34H15.6947V20.9344Z"
fill="white"
/>