Skip to content

Commit

Permalink
renaming jsx to js - semantic 3
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Nov 29, 2023
1 parent 1aac0c1 commit 5eb3231
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 28 deletions.
27 changes: 4 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"semantic-ui-css": "^2.5.0",
"semantic-ui-react": "^2.1.4"
"semantic-ui-react": "^v3.0.0-beta.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.1.4",
Expand Down
1 change: 0 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import './App.css'

import Contador from './components/contador'
import LogContador from './components/logContador'
import { Provider } from './context/Context'
Expand Down
2 changes: 1 addition & 1 deletion src/components/contador.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext } from 'react'
import { useContext } from 'react'
import { Button, Container, Label } from 'semantic-ui-react'

import { Context } from '../context/Context'
Expand Down
7 changes: 6 additions & 1 deletion src/context/Context.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { createContext,useState } from 'react'
import { createContext,useState } from 'react'
import PropTypes from 'prop-types'

import { Log } from '../domain/log'

Expand Down Expand Up @@ -43,4 +44,8 @@ export const Provider = ({ children }) => {
{children}
</Context.Provider>
)
}

Provider.propTypes = {
children: PropTypes.array
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
plugins: [react()],
test: {
globals: true,
setupFiles: ["./setupTests.js"],
setupFiles: ['./setupTests.js'],
environment: 'jsdom',
coverage: {
reporter: ['text', 'json', 'html', 'json-summary'],
Expand Down

0 comments on commit 5eb3231

Please sign in to comment.