Skip to content

Commit

Permalink
test: deployment test-2
Browse files Browse the repository at this point in the history
  • Loading branch information
ozbeyahmet1 committed Oct 24, 2022
1 parent fe9cfc3 commit 747b456
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion components/cards/cryptoCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function App (props: IAppProps) {
height={40}
/>
</div>
<h4>{parseFloat(props.crypto.current_price).toFixed(2)} USD</h4>
<h4>{props.crypto.current_price.toFixed(2)} USD</h4>
</div>
</div>

Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@
},
"prettier": {
"semi": false
},
"resolutions": {
"@types/react": "17.0.40"
}

}
4 changes: 2 additions & 2 deletions pages/admin/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Layout from "../../components/layout"
import Layout from "../../components/layout/primaryLayout"

export default function Page() {
return (
<Layout>
<Layout selected="">
<h1>This page is protected by Middleware</h1>
<p>Only admin users can see this page.</p>
<p>
Expand Down
4 changes: 2 additions & 2 deletions pages/me/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { useSession } from "next-auth/react"
import Layout from "../../components/layout"
import Layout from "../../components/layout/primaryLayout"

export default function MePage() {
const { data } = useSession()

return (
<Layout>
<Layout selected="">
<pre>{JSON.stringify(data, null, 2)}</pre>
</Layout>
)
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1356,10 +1356,10 @@
dependencies:
"@types/react" "*"

"@types/react@*":
version "18.0.21"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.21.tgz#b8209e9626bb00a34c76f55482697edd2b43cc67"
integrity sha512-7QUCOxvFgnD5Jk8ZKlUAhVcRj7GuJRjnjjiY/IUBWKgOlnvDvTMLD4RTF7NPyVmbRhNrbomZiOepg7M/2Kj1mA==
"@types/react@*", "@types/react@17.0.40":
version "17.0.40"
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.40.tgz#dc010cee6254d5239a138083f3799a16638e6bad"
integrity sha512-UrXhD/JyLH+W70nNSufXqMZNuUD2cXHu6UjCllC6pmOQgBX4SGXOH8fjRka0O0Ee0HrFxapDD8Bwn81Kmiz6jQ==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
Expand Down

0 comments on commit 747b456

Please sign in to comment.