From 2c064d7c7202e705123c3f9c592d4feee56bbefd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Raddum=20Berg?= Date: Fri, 22 May 2020 04:15:17 +0200 Subject: [PATCH] Adapt to new library layout --- react-native/src/main/scala/hello/world/App.scala | 2 +- react-native/src/main/scala/hello/world/LoadFonts.scala | 2 +- storybook-react/src/main/scala/demo/Demo.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/react-native/src/main/scala/hello/world/App.scala b/react-native/src/main/scala/hello/world/App.scala index a9225d3..c5cf138 100644 --- a/react-native/src/main/scala/hello/world/App.scala +++ b/react-native/src/main/scala/hello/world/App.scala @@ -5,7 +5,7 @@ import slinky.core.annotations.react import slinky.core.facade.Hooks.useState import slinky.core.facade.ReactElement import slinky.native.ScrollView -import typings.antDesignReactNative.PartialLocale +import typings.antDesignReactNative.anon.PartialLocale import typings.antDesignReactNative.antDesignReactNativeStrings.xl import typings.antDesignReactNative.components.{List => AntdList, _} import typings.bang88ReactNativeDrawerLayout.mod.DrawerLayout diff --git a/react-native/src/main/scala/hello/world/LoadFonts.scala b/react-native/src/main/scala/hello/world/LoadFonts.scala index 49e4e99..39850ba 100644 --- a/react-native/src/main/scala/hello/world/LoadFonts.scala +++ b/react-native/src/main/scala/hello/world/LoadFonts.scala @@ -54,7 +54,7 @@ object LoadFonts { ) state match { - case State.Loading => AppLoading.AnonAutoHideSplash() + case State.Loading => AppLoading.AutoHideSplash() case State.Error(msg) => Text()(s"Could not load fonts: $msg") case State.Success => App() } diff --git a/storybook-react/src/main/scala/demo/Demo.scala b/storybook-react/src/main/scala/demo/Demo.scala index 7091300..f41cd7a 100644 --- a/storybook-react/src/main/scala/demo/Demo.scala +++ b/storybook-react/src/main/scala/demo/Demo.scala @@ -4,7 +4,7 @@ import org.scalajs.dom.window.alert import slinky.core.AttrPair import slinky.web.html._ import typings.storybookReact.mod.storiesOf -import typings.node.module +import typings.node.global.module object Demo { def main(args: Array[String]): Unit =