nicolium: start migrating icons to import
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -1,14 +1,13 @@
|
||||
import buildingCommunityIcon from '@phosphor-icons/core/regular/city.svg';
|
||||
import homeIcon from '@phosphor-icons/core/regular/house.svg';
|
||||
import mapPinIcon from '@phosphor-icons/core/regular/map-pin.svg';
|
||||
import roadIcon from '@phosphor-icons/core/regular/road-horizon.svg';
|
||||
import React from 'react';
|
||||
|
||||
import Icon from '@/components/ui/icon';
|
||||
|
||||
import type { Location } from 'pl-api';
|
||||
|
||||
const buildingCommunityIcon = require('@phosphor-icons/core/regular/city.svg');
|
||||
const homeIcon = require('@phosphor-icons/core/regular/house.svg');
|
||||
const mapPinIcon = require('@phosphor-icons/core/regular/map-pin.svg');
|
||||
const roadIcon = require('@phosphor-icons/core/regular/road-horizon.svg');
|
||||
|
||||
const ADDRESS_ICONS: Record<string, string> = {
|
||||
house: homeIcon,
|
||||
street: roadIcon,
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import defaultIcon from '@phosphor-icons/core/regular/paperclip.svg';
|
||||
import React from 'react';
|
||||
|
||||
import Icon from '@/components/ui/icon';
|
||||
@ -5,8 +6,6 @@ import { MIMETYPE_ICONS } from '@/components/upload';
|
||||
|
||||
import type { MediaAttachment } from 'pl-api';
|
||||
|
||||
const defaultIcon = require('@phosphor-icons/core/regular/paperclip.svg');
|
||||
|
||||
interface IChatUploadPreview {
|
||||
className?: string;
|
||||
attachment: MediaAttachment;
|
||||
|
||||
@ -21,7 +21,7 @@ import toast from '@/toast';
|
||||
|
||||
const toRad = (x: number) => x * (Math.PI / 180);
|
||||
|
||||
const avatarMissing: string = require('@/assets/images/avatar-missing.png');
|
||||
import avatarMissing from '@/assets/images/avatar-missing.png';
|
||||
|
||||
const HEIGHT = 1000;
|
||||
const WIDTH = 1000;
|
||||
|
||||
Reference in New Issue
Block a user