Update the svgr imports

This commit is contained in:
Quentin Gliech
2023-09-26 14:42:06 +02:00
parent 285659bf42
commit 03ef447120
5 changed files with 5 additions and 26 deletions

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import IconArrowLeft from "@vector-im/compound-design-tokens/icons/arrow-left.svg";
import IconArrowLeft from "@vector-im/compound-design-tokens/icons/arrow-left.svg?react";
import { H3, IconButton } from "@vector-im/compound-web";
import { PropsWithChildren } from "react";

View File

@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import IconDelete from "@vector-im/compound-design-tokens/icons/delete.svg";
import IconDelete from "@vector-im/compound-design-tokens/icons/delete.svg?react";
import { Body } from "@vector-im/compound-web";
import { atom, useSetAtom } from "jotai";
import { atomFamily } from "jotai/utils";

View File

@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import IconArrowLeft from "@vector-im/compound-design-tokens/icons/arrow-left.svg";
import IconSend from "@vector-im/compound-design-tokens/icons/check.svg";
import IconArrowLeft from "@vector-im/compound-design-tokens/icons/arrow-left.svg?react";
import IconSend from "@vector-im/compound-design-tokens/icons/check.svg?react";
import {
Button,
Control,

View File

@@ -1,22 +0,0 @@
// Copyright 2023 The Matrix.org Foundation C.I.C.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
declare module "*.svg" {
const ReactComponent: React.FunctionComponent<
React.SVGAttributes<SVGElement>
>;
export default ReactComponent;
}
declare module "*.module.css";

View File

@@ -13,3 +13,4 @@
// limitations under the License.
/// <reference types="vite/client" />
/// <reference types="vite-plugin-svgr/client" />