Skip to content

Commit

Permalink
improving error handling b00tc4mp#412
Browse files Browse the repository at this point in the history
  • Loading branch information
pankelix committed Feb 23, 2024
1 parent 303b34f commit 48c23e3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
8 changes: 8 additions & 0 deletions staff/miguel-arias/project/app/.vite/deps/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"hash": "fc01d3c6",
"configHash": "48c6636e",
"lockfileHash": "e3b0c442",
"browserHash": "f5ab5bb2",
"optimized": {},
"chunks": {}
}
3 changes: 3 additions & 0 deletions staff/miguel-arias/project/app/.vite/deps/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
2 changes: 2 additions & 0 deletions staff/miguel-arias/project/app/src/components/Task.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ function Task(props) {
const task = props.task
const assigneeName = props.profileName

const context = useContext()

const arrangeText = (text) => {
let capital = text[0].toUpperCase()
let newText = capital + text.slice(1)
Expand Down
1 change: 1 addition & 0 deletions staff/miguel-arias/project/app/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './utils/console2.js'
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
Expand Down
8 changes: 6 additions & 2 deletions staff/miguel-arias/project/app/src/views/Register.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import logic from '../logic'
import { useContext } from '../hooks'

import { Container, Form, Link, Input, Button } from '../library'

import logic from '../logic'

function Register(props) {
console.log('register')

const context = useContext()

const handleSubmit = async event => {
event.preventDefault()

Expand All @@ -17,7 +21,7 @@ function Register(props) {
props.onSuccess()
alert('user registered')
} catch (error) {
alert(error)
context.handleError(error)
}
}

Expand Down

0 comments on commit 48c23e3

Please sign in to comment.