Update the svgr imports
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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,
|
||||
|
||||
22
frontend/src/globals.d.ts
vendored
22
frontend/src/globals.d.ts
vendored
@@ -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";
|
||||
1
frontend/src/vite-env.d.ts
vendored
1
frontend/src/vite-env.d.ts
vendored
@@ -13,3 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
/// <reference types="vite/client" />
|
||||
/// <reference types="vite-plugin-svgr/client" />
|
||||
|
||||
Reference in New Issue
Block a user