@ronas-it/nx-generators 0.19.0-alpha.4 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronas-it/nx-generators",
3
- "version": "0.19.0-alpha.4",
3
+ "version": "0.19.0",
4
4
  "description": "Nx generators for Ronas IT projects",
5
5
  "license": "MIT",
6
6
  "author": "Ronas IT",
@@ -2,7 +2,7 @@ import { pick } from 'lodash-es';
2
2
  import { notFound } from 'next/navigation';
3
3
  import { NextIntlClientProvider } from 'next-intl';
4
4
  import { getMessages, setRequestLocale } from 'next-intl/server';
5
- import { ReactElement } from 'react';
5
+ import { ReactElement, ReactNode } from 'react';
6
6
  import { constants } from '../../constants';
7
7
  <% if(hasProviders) { %> import { Providers } from './providers';<% } %>
8
8
  import type { Locale } from '<%= libPath %>/shared/utils/i18n';
@@ -12,12 +12,17 @@ export const metadata: Metadata = {
12
12
  title: '<%= formatName(name) %>',
13
13
  };
14
14
 
15
+ export interface RootLayoutProps {
16
+ children: ReactNode;
17
+ params: Promise<{ locale: Locale }>;
18
+ }
19
+
15
20
  const locales = constants.locales;
16
21
 
17
22
  export const generateStaticParams = (): Array<{ locale: string }> =>
18
23
  locales.map((locale) => ({ locale }));
19
24
 
20
- export default async function RootLayout({ children, params }: LayoutProps<'/[locale]'>): Promise<ReactElement> {
25
+ export default async function RootLayout({ children, params }: RootLayoutProps): Promise<ReactElement> {
21
26
  const { locale } = await params;
22
27
 
23
28
  if (!locales.includes(locale as Locale)) {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.devDependencies = exports.dependencies = void 0;
4
4
  exports.dependencies = {
5
5
  'expo-app': {
6
- '@ronas-it/react-native-common-modules': '~1.1.0',
6
+ '@ronas-it/react-native-common-modules': '~1.2.0',
7
7
  'react-native-mmkv': '~3.3.3',
8
8
  'expo-constants': '~18.0.10',
9
9
  'expo-dev-client': '~6.0.16',
@@ -2,8 +2,7 @@ export const navigationConfig = {
2
2
  routes: {
3
3
  // TODO: Write app routes here. Example:
4
4
  public: {
5
- signIn: '/sign-in',
6
- signUp: '/sign-up',
5
+ signIn: '/',
7
6
  },
8
7
  }
9
8
  };