Skip to content

Commit 620b36d

Browse files
authored
chore: Clean up lingering usage of deprecated default exports. (aws-amplify#4790)
1 parent 80589d7 commit 620b36d

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

src/fragments/lib-v1/predictions/js/getting-started.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Import and load the configuration file in your app. It's recommended you add the
2626

2727
```javascript
2828
import { Amplify } from 'aws-amplify';
29-
import Predictions, {
29+
import {
30+
Predictions,
3031
AmazonAIPredictionsProvider
3132
} from '@aws-amplify/predictions';
3233
import awsconfig from './aws-exports';

src/fragments/lib-v1/push-notifications/js/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ If you don't have Analytics already enabled, see our [Analytics Developer Guide]
208208

209209
```javascript
210210
import { Amplify } from 'aws-amplify';
211-
import PushNotification from '@aws-amplify/pushnotification';
211+
import { PushNotification } from '@aws-amplify/pushnotification';
212212
import PushNotificationIOS from '@react-native-community/push-notification-ios';
213213
import awsconfig from './aws-exports';
214214

src/fragments/lib/predictions/js/getting-started.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Import and load the configuration file in your app. It's recommended you add the
2626

2727
```javascript
2828
import { Amplify } from 'aws-amplify';
29-
import Predictions, {
29+
import {
30+
Predictions,
3031
AmazonAIPredictionsProvider
3132
} from '@aws-amplify/predictions';
3233
import awsconfig from './aws-exports';

src/fragments/lib/push-notifications/js/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ If you don't have Analytics already enabled, see our [Analytics Developer Guide]
208208

209209
```javascript
210210
import { Amplify } from 'aws-amplify';
211-
import PushNotification from '@aws-amplify/pushnotification';
211+
import { PushNotification } from '@aws-amplify/pushnotification';
212212
import PushNotificationIOS from '@react-native-community/push-notification-ios';
213213
import awsconfig from './aws-exports';
214214

src/fragments/ui-legacy/vue/overview.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ npm i aws-amplify-vue
1414
Then, alter main.js:
1515

1616
```javascript
17-
import Amplify, * as AmplifyModules from 'aws-amplify'
17+
import { Amplify } from 'aws-amplify'
18+
import * as AmplifyModules from 'aws-amplify'
1819
import { AmplifyPlugin } from 'aws-amplify-vue'
1920
import awsconfig from './aws-exports'
2021
Amplify.configure(awsconfig)

0 commit comments

Comments
 (0)