Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { useCollections } from '@/app/store/hooks/useCollections'
import { getStoreId } from '@/utils/store-utils'
import { UnsavedChangesAlert } from '@/components/ui/unsaved-changes-alert'
import { useCollectionForm } from '@/app/store/components/product-management/utils/collection-form-utils'
import { configureAmplify } from '@/app/store/components/product-management/collection-form/config/amplifyConfig'

import { CollectionHeader } from '@/app/store/components/product-management/collection-form/components/CollectionHeader'
import { CollectionContent } from '@/app/store/components/product-management/collection-form/components/CollectionContent'
import { CollectionSidebar } from '@/app/store/components/product-management/collection-form/components/CollectionSidebar'
import { CollectionFooter } from '@/app/store/components/product-management/collection-form/components/CollectionFooter'
import { configureAmplify } from '@/lib/amplify-config'

// Configure Amplify
configureAmplify()

export function FormPage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import CollectionsHeader from '@/app/store/components/product-management/collect
import CollectionsTabs from '@/app/store/components/product-management/collections/collections-tabs'
import CollectionsTable from '@/app/store/components/product-management/collections/collections-table'
import CollectionsFooter from '@/app/store/components/product-management/collections/collections-footer'
import { Amplify } from 'aws-amplify'
import outputs from '@/amplify_outputs.json'
import { configureAmplify } from '@/lib/amplify-config'
import { useCollections } from '@/app/store/hooks/useCollections'
import { Skeleton } from '@/components/ui/skeleton'
import {
Expand All @@ -18,15 +17,7 @@ import {
TableRow,
} from '@/components/ui/table'

Amplify.configure(outputs)
const existingConfig = Amplify.getConfig()
Amplify.configure({
...existingConfig,
API: {
...existingConfig.API,
REST: outputs.custom.APIs,
},
})
configureAmplify()

type FilterType = 'all' | 'active' | 'inactive'

Expand Down
Loading