Skip to content

Commit 06419a7

Browse files
chore(ui-react-storage): clean up outdated styles file (#6197)
Co-authored-by: ashika112 <[email protected]>
1 parent f2fc55d commit 06419a7

File tree

5 files changed

+3
-496
lines changed

5 files changed

+3
-496
lines changed

examples/next/pages/ui/components/storage/storage-browser/default-auth/routed/StorageBrowser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
createAmplifyAuthAdapter,
55
createStorageBrowser,
66
} from '@aws-amplify/ui-react-storage/browser';
7+
import '@aws-amplify/ui-react-storage/styles.css';
78

89
import config from './aws-exports';
910

packages/react-storage/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@
1414
"types": "./dist/types/components/StorageBrowser/index.d.ts",
1515
"import": "./dist/esm/browser.mjs"
1616
},
17-
"./styles.css": "./dist/styles.css",
18-
"./storage-browser-styles.css": "./dist/storage-browser-styles.css"
17+
"./styles.css": "./dist/styles.css"
1918
},
2019
"browser": {
21-
"./styles.css": "./dist/styles.css",
22-
"./storage-browser-styles.css": "./dist/storage-browser-styles.css"
20+
"./styles.css": "./dist/styles.css"
2321
},
2422
"types": "dist/types/index.d.ts",
2523
"license": "Apache-2.0",

packages/react-storage/rollup.config.mjs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,6 @@ const config = defineConfig([
6262
},
6363
plugins: [styles({ mode: ['extract'] })],
6464
},
65-
{
66-
input: 'src/styles/storage-browser-styles.ts',
67-
output: {
68-
dir: 'dist',
69-
format: 'cjs',
70-
assetFileNames: '[name][extname]',
71-
},
72-
plugins: [styles({ mode: ['extract'] })],
73-
},
7465
]);
7566

7667
export default config;

packages/react-storage/src/styles/storage-browser-styles.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)