Skip to content

Commit

Permalink
Upgrade dependencies and solved warnings nextjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubrum committed Oct 28, 2023
1 parent b9e537f commit 17dc931
Show file tree
Hide file tree
Showing 7 changed files with 1,507 additions and 977 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ module.exports = {
],
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'no-console': 'off',
},
};
6 changes: 6 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
reactStrictMode: true,
images: {
domains: ['media.tenor.com', 'media1.tenor.com', 'cdn.dribbble.com', 'www.freeiconspng.com', 'www.alura.com.br', 'images.uncyc.org'],
},
};
2,452 changes: 1,486 additions & 966 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "with-styled-components",
"version": "1.0.0",
"version": "1.0.1",
"scripts": {
"dev": "next",
"build": "next build",
Expand All @@ -10,14 +10,14 @@
},
"dependencies": {
"bootstrap": "^5.2.3",
"framer-motion": "^9.0.1",
"next": "13.1.6",
"framer-motion": "^10.16.4",
"next": "14.0.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-bootstrap": "^2.7.0",
"react-bootstrap": "^2.9.1",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"styled-components": "^5.3.6"
"styled-components": "^6.1.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "^13.1.6",
Expand Down
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function Home() {

<p>{db.description}</p>

<form onSubmit={function (infosDoEvento) {
<form onSubmit={function infoDoEvento(infosDoEvento) {
infosDoEvento.preventDefault();
router.push(`/quiz?name=${name}`);
}}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Footer/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable react/react-in-jsx-scope */
import styled from 'styled-components';
import Image from 'next/image';

// src/components/Footer/index.js
const FooterWrapper = styled.footer`
Expand Down Expand Up @@ -45,7 +46,7 @@ export default function Footer(props) {
// eslint-disable-next-line react/jsx-props-no-spreading
<FooterWrapper {...props}>
<a className="link-alura" href="https://www.alura.com.br/">
<img src="https://www.alura.com.br/assets/img/alura-logo-white.1570550707.svg" alt="Logo Alura" />
<Image src="https://www.alura.com.br/assets/img/alura-logo-white.1570550707.svg" alt="Logo Alura" />
</a>
<p className="text-alura">
Orgulhosamente criado durante
Expand Down
10 changes: 6 additions & 4 deletions src/screens/Quiz/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
/* eslint-disable react/jsx-no-bind */
import React from 'react';
import Head from 'next/head';
import Image from 'next/image';
import Link from 'next/link';
import db from '../../../db.json';
import AlternativesForm from '../../components/AlternativeForm';
import Widget from '../../components/Widget';
Expand All @@ -29,7 +31,7 @@ function ResultWidget({ results }) {
<p style={{ fontSize: '20px' }}>Resultados</p>
</Widget.Header>

<img
<Image
alt="Imagem do Loading"
style={{
width: '100%',
Expand Down Expand Up @@ -63,7 +65,7 @@ function ResultWidget({ results }) {
</li>
))}
</ul>
<a href="/">Tentar novamente...</a>
<Link href="/">Tentar novamente...</Link>
</Widget.Content>

</Widget>
Expand All @@ -78,7 +80,7 @@ function LoadingWidget() {
</Widget.Header>

<Widget.Content style={{ padding: '0px' }}>
<img
<Image
alt="Imagem do Loading"
style={{
width: '100%',
Expand Down Expand Up @@ -130,7 +132,7 @@ function QuestionWidget({
</h3>
</Widget.Header>

<img
<Image
alt="Descrição"
style={{
width: '100%',
Expand Down

1 comment on commit 17dc931

@vercel
Copy link

@vercel vercel bot commented on 17dc931 Oct 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tibiaquiz-base – ./

tibiaquiz-base.vercel.app
tibiaquiz-base-lubrum.vercel.app
tibiaquiz-base-git-main-lubrum.vercel.app

Please sign in to comment.