Merged in feat/SW-1711-SW-2077-icons (pull request #1709)
Fix(SW-1711)/(SW-2077): Export icons individually * fix(SW-1711): export icons individually Approved-by: Michael Zetterberg Approved-by: Erik Tiekstra
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
import {
|
||||
DowntownCamperIcon,
|
||||
GrandHotelOsloLogoIcon,
|
||||
HaymarketIcon,
|
||||
HotelNorgeIcon,
|
||||
MarskiLogoIcon,
|
||||
ScandicGoLogoIcon,
|
||||
ScandicLogoIcon,
|
||||
} from '..'
|
||||
import DowntownCamperIcon from './DowntownCamper'
|
||||
import GrandHotelOsloLogoIcon from './GrandHotelOslo'
|
||||
import HaymarketIcon from './Haymarket'
|
||||
import HotelNorgeIcon from './HotelNorge'
|
||||
import MarskiLogoIcon from './Marski'
|
||||
import ScandicGoLogoIcon from './ScandicGoLogo'
|
||||
import ScandicLogoIcon from './ScandicLogo'
|
||||
|
||||
type HotelLogoProps = {
|
||||
hotelId: string
|
||||
@@ -27,7 +25,7 @@ enum SignatureHotelEnum {
|
||||
Marski = '605',
|
||||
}
|
||||
|
||||
export default function HotelLogo({ hotelId, hotelType }: HotelLogoProps) {
|
||||
export default function HotelLogoIcon({ hotelId, hotelType }: HotelLogoProps) {
|
||||
if (hotelType === HotelTypeEnum.ScandicGo) {
|
||||
return <ScandicGoLogoIcon />
|
||||
}
|
||||
|
||||
6
packages/design-system/lib/components/Icons/index.ts
Normal file
6
packages/design-system/lib/components/Icons/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export type {
|
||||
IconProps,
|
||||
IllustrationProps as LogoAndIllustrationProps,
|
||||
LogoProps,
|
||||
NucleoIconProps,
|
||||
} from './icon'
|
||||
@@ -1,85 +0,0 @@
|
||||
export { default as BedHotelIcon } from './Customised/Amenities&Facilities/BedHotel'
|
||||
export { default as CoolingIcon } from './Customised/Amenities&Facilities/Cooling'
|
||||
export { default as CouchTableIcon } from './Customised/Amenities&Facilities/CouchTable'
|
||||
export { default as FootStoolIcon } from './Customised/Amenities&Facilities/FootStool'
|
||||
export { default as HairDryerIcon } from './Customised/Amenities&Facilities/Hairdryer'
|
||||
export { default as HandSoapIcon } from './Customised/Amenities&Facilities/HandSoap'
|
||||
export { default as IceMachineIcon } from './Customised/Amenities&Facilities/IceMachine'
|
||||
export { default as MassageIcon } from './Customised/Amenities&Facilities/Massage'
|
||||
export { default as MdiBunkBedIcon } from './Customised/Amenities&Facilities/MdiBunkBedOutline'
|
||||
export { default as MirrorIcon } from './Customised/Amenities&Facilities/Mirror'
|
||||
export { default as MovingBedsIcon } from './Customised/Amenities&Facilities/MovingBeds'
|
||||
export { default as RoadIcon } from './Customised/Amenities&Facilities/Road'
|
||||
export { default as RugIcon } from './Customised/Amenities&Facilities/Rug'
|
||||
export { default as SafetyBoxIcon } from './Customised/Amenities&Facilities/SafetyBox'
|
||||
export { default as SlippersIcon } from './Customised/Amenities&Facilities/Slippers'
|
||||
export { default as TowelIcon } from './Customised/Amenities&Facilities/Towel'
|
||||
export { default as ViewIcon } from './Customised/Amenities&Facilities/View'
|
||||
export { default as WardIcon } from './Customised/Amenities&Facilities/Ward'
|
||||
export { default as WindowNotAvailableIcon } from './Customised/Amenities&Facilities/WindowNotAvailable'
|
||||
export { default as WoodFloorIcon } from './Customised/Amenities&Facilities/WoodFloor'
|
||||
export { default as DiamondAddIcon } from './Customised/Benefits/DiamondAdd'
|
||||
export { default as FacebookIcon } from './Customised/Socials/Facebook'
|
||||
export { default as InstagramIcon } from './Customised/Socials/Instagram'
|
||||
export { default as TripadvisorIcon } from './Customised/Socials/Tripadvisor'
|
||||
export { default as MinimizeIcon } from './Customised/UI/Minimize'
|
||||
export { default as BedIcon } from './Illustrations/Bed'
|
||||
export { default as BedBunkIcon } from './Illustrations/BedBunk'
|
||||
export { default as BedBunkExtraIcon } from './Illustrations/BedBunkExtra'
|
||||
export { default as BedGenericIcon } from './Illustrations/BedGeneric'
|
||||
export { default as BedKingIcon } from './Illustrations/BedKing'
|
||||
export { default as BedPullOutIcon } from './Illustrations/BedPullOut'
|
||||
export { default as BedPullOutExtraIcon } from './Illustrations/BedPullOutExtra'
|
||||
export { default as BedQueenIcon } from './Illustrations/BedQueen'
|
||||
export { default as BedSingleIcon } from './Illustrations/BedSingle'
|
||||
export { default as BedSofaIcon } from './Illustrations/BedSofa'
|
||||
export { default as BedSofaExtraIcon } from './Illustrations/BedSofaExtra'
|
||||
export { default as BedTwinIcon } from './Illustrations/BedTwin'
|
||||
export { default as BedWallExtraIcon } from './Illustrations/BedWallExtra'
|
||||
export { default as BreakfastBuffetIcon } from './Illustrations/BreakfastBuffet'
|
||||
export { default as NoBreakfastBuffetIcon } from './Illustrations/NoBreakfastBuffet'
|
||||
export { default as CoinIcon } from './Illustrations/Coin'
|
||||
export { default as CroissantCoffeeEggIcon } from './Illustrations/CroissantCoffeeEgg'
|
||||
export { default as CutleryOneIcon } from './Illustrations/CutleryOne'
|
||||
export { default as CutleryTwoIcon } from './Illustrations/CutleryTwo'
|
||||
export { default as GiftOpenIcon } from './Illustrations/GiftOpen'
|
||||
export { default as HandKeyIcon } from './Illustrations/HandKey'
|
||||
export { default as HotelNightIcon } from './Illustrations/HotelNight'
|
||||
export { default as KidsIcon } from './Illustrations/Kids'
|
||||
export { default as KidsMocktailIcon } from './Illustrations/KidsMocktail'
|
||||
export { default as MagicWandIcon } from './Illustrations/MagicWand'
|
||||
export { default as MoneyHandIcon } from './Illustrations/MoneyHand'
|
||||
export { default as SurpriseIcon } from './Illustrations/Surprise'
|
||||
export { default as VoucherIcon } from './Illustrations/Voucher'
|
||||
export { default as HotelLogo } from './Logos'
|
||||
export { default as DowntownCamperIcon } from './Logos/DowntownCamper'
|
||||
export { default as GrandHotelOsloLogoIcon } from './Logos/GrandHotelOslo'
|
||||
export { default as HaymarketIcon } from './Logos/Haymarket'
|
||||
export { default as HotelNorgeIcon } from './Logos/HotelNorge'
|
||||
export { default as MarskiLogoIcon } from './Logos/Marski'
|
||||
export { default as ScandicGoLogoIcon } from './Logos/ScandicGoLogo'
|
||||
export { default as ScandicLogoIcon } from './Logos/ScandicLogo'
|
||||
export { MaterialIcon } from './MaterialIcon'
|
||||
export { default as BathroomCabinet2Icon } from './Nucleo/Amenities&Facilities/bathroom-cabinet-2'
|
||||
export { default as ConferenceRoomIcon } from './Nucleo/Amenities&Facilities/conference-room'
|
||||
export { default as Door2Icon } from './Nucleo/Amenities&Facilities/door-2'
|
||||
export { default as Hairdresser1Icon } from './Nucleo/Amenities&Facilities/hairdresser-1'
|
||||
export { default as RecordPlayer3Icon } from './Nucleo/Amenities&Facilities/record-player-3'
|
||||
export { default as Toilet2Icon } from './Nucleo/Amenities&Facilities/toilet-2'
|
||||
export { default as UserPolice2Icon } from './Nucleo/Amenities&Facilities/user-police-2'
|
||||
export { default as BouquetIcon } from './Nucleo/Benefits/bouquet'
|
||||
export { default as Discount22Icon } from './Nucleo/Benefits/discount-2-2'
|
||||
export { default as BowlingPinsIcon } from './Nucleo/Experiences/bowling-pins'
|
||||
export { default as PalmTree2Icon } from './Nucleo/Experiences/palm-tree-2'
|
||||
export { default as Chips3Icon } from './Nucleo/Food/chips-3'
|
||||
export { default as Popcorn2Icon } from './Nucleo/Food/popcorn-2'
|
||||
|
||||
export type {
|
||||
IconProps,
|
||||
IllustrationProps as LogoAndIllustrationProps,
|
||||
NucleoIconProps,
|
||||
} from './icon'
|
||||
export type {
|
||||
MaterialIconProps,
|
||||
MaterialIconSetIconProps,
|
||||
} from './MaterialIcon'
|
||||
Reference in New Issue
Block a user