
- Moved the various tabs on the draft view to their own views. - Renames modes to views - Started to group various aspects of the workbench state under `_state` in the gist to prevent it from getting all mixed up with the core settings. - Updated events title to make it more clear not all events might be present - Removed valid state in measurements input since it was only getting updated on keyboard input but now when preloading measurements (which it does now)
21 lines
515 B
JavaScript
21 lines
515 B
JavaScript
import Robot from 'shared/components/robot/index.js'
|
|
import Events from '../events.js'
|
|
import { useTranslation } from 'next-i18next'
|
|
|
|
const Error = props => {
|
|
const { t } = useTranslation(['errors'])
|
|
|
|
return (
|
|
<div className="mt-12">
|
|
<div className="flex flex-row items-center justify-around">
|
|
<h1>{t('errors:something')}</h1>
|
|
<div className="max-w-96"><Robot pose='fail' embed/></div>
|
|
</div>
|
|
<Events events={props.draft.events} />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
|
|
export default Error
|
|
|