Skip to content

Commit

Permalink
chore(storage): clean up out-dated styles file
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Nov 22, 2024
1 parent 141c654 commit 8b23779
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 505 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { Auth } from '../managedAuthAdapter';
import { Button, Flex, Breadcrumbs } from '@aws-amplify/ui-react';

import '@aws-amplify/ui-react-storage/styles.css';
import '@aws-amplify/ui-react-storage/storage-browser-styles.css';

const components: CreateStorageBrowserInput['components'] = {
Navigation: ({ items }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
import { StorageBrowser } from '@aws-amplify/ui-react-storage';

import '@aws-amplify/ui-react-storage/styles.css';
import '@aws-amplify/ui-react-storage/storage-browser-styles.css';

import config from './aws-exports';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
createStorageBrowser,
} from '@aws-amplify/ui-react-storage/browser';
import '@aws-amplify/ui-react-storage/styles.css';
import '@aws-amplify/ui-react-storage/storage-browser-styles.css';

import config from './aws-exports';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Button, Flex } from '@aws-amplify/ui-react';

import { StorageBrowser } from '../../StorageBrowser';

import '@aws-amplify/ui-react-storage/storage-browser-styles.css';
import '@aws-amplify/ui-react-storage/styles.css';

export default function Page() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Button, Flex } from '@aws-amplify/ui-react';

import { StorageBrowser } from '../StorageBrowser';

import '@aws-amplify/ui-react-storage/storage-browser-styles.css';
import '@aws-amplify/ui-react-storage/styles.css';

function Locations() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import useIsSignedIn from './useIsSignedIn';
import { Authenticator } from '@aws-amplify/ui-react';

import '@aws-amplify/ui-react-storage/styles.css';
import '@aws-amplify/ui-react-storage/storage-browser-styles.css';

function Example() {
const router = useRouter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { SignIn, SignOutButton } from './routed/components';
import { Flex, View } from '@aws-amplify/ui-react';

import '@aws-amplify/ui-react-storage/styles.css';
import '@aws-amplify/ui-react-storage/storage-browser-styles.css';

const { StorageBrowser } = createStorageBrowser({
config: managedAuthAdapter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { SignOutButton } from '../../components';
import { StorageBrowser } from '../../StorageBrowser';

import '@aws-amplify/ui-react-storage/styles.css';
import '@aws-amplify/ui-react-storage/storage-browser-styles.css';

export default function Page() {
const { back, query, pathname, replace } = useRouter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { SignOutButton } from '../components';
import { StorageBrowser } from '../StorageBrowser';

import '@aws-amplify/ui-react-storage/styles.css';
import '@aws-amplify/ui-react-storage/storage-browser-styles.css';

function Locations() {
const router = useRouter();
Expand Down
6 changes: 2 additions & 4 deletions packages/react-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
"types": "./dist/types/components/StorageBrowser/index.d.ts",
"import": "./dist/esm/browser.mjs"
},
"./styles.css": "./dist/styles.css",
"./storage-browser-styles.css": "./dist/storage-browser-styles.css"
"./styles.css": "./dist/styles.css"
},
"browser": {
"./styles.css": "./dist/styles.css",
"./storage-browser-styles.css": "./dist/storage-browser-styles.css"
"./styles.css": "./dist/styles.css"
},
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
Expand Down
9 changes: 0 additions & 9 deletions packages/react-storage/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ const config = defineConfig([
},
plugins: [styles({ mode: ['extract'] })],
},
{
input: 'src/styles/storage-browser-styles.ts',
output: {
dir: 'dist',
format: 'cjs',
assetFileNames: '[name][extname]',
},
plugins: [styles({ mode: ['extract'] })],
},
]);

export default config;

This file was deleted.

Loading

0 comments on commit 8b23779

Please sign in to comment.