Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpi committed Mar 15, 2021
1 parent e6267d0 commit 285e435
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"baseUrl": "http://127.0.0.1:3000",
"baseUrl": "http://127.0.0.1:5000",
"fixturesFolder": "tests/e2e/fixtures",
"integrationFolder": "tests/e2e/integration",
"pluginsFile": "tests/e2e/plugins/index.ts",
Expand Down
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>Cosmos</title>

<script async defer data-website-id="f06b76ab-ba38-4747-9de7-d4cc49db2f52" src="https://umami.test/umami.js"></script>
</head>

<body>
Expand Down
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export const NotFound = () => {
const App = () => {
return (
<>
<GlobalStyles/>
<GlobalStyles />

<StoreProvider store={store}>
<ProgressBar/>
<ProgressBar />

<div css={tw`w-auto mx-auto`}>
<Router history={history}>
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import React from 'react';
import ReactDOM from 'react-dom';
import App from '~/App';

ReactDOM.render(<App/>, document.getElementById('app'));
ReactDOM.render(<App />, document.getElementById('app'));
5 changes: 1 addition & 4 deletions src/twin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@ import styledImport, { CSSProp, css as cssImport } from 'styled-components';
import 'twin.macro';

declare module 'react' {
// The css prop
interface HTMLAttributes<T> extends DOMAttributes<T> {
css?: CSSProp
}
// The inline svg css prop

interface SVGProps<T> extends SVGProps<SVGSVGElement> {
css?: CSSProp
}
}

declare module 'twin.macro' {
// The styled and css imports
const styled: typeof styledImport
const css: typeof cssImport
}

// The 'as' prop on styled components
declare global {
namespace JSX {
// @ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
},
},

"include": ["./src/**/*.ts", "./src/**/*.d.ts", "./src/**/*.tsx" ]
"include": [ "./src/**/*.ts", "./src/**/*.d.ts", "./src/**/*.tsx" ]
}

0 comments on commit 285e435

Please sign in to comment.