Skip to content

Commit

Permalink
Add notice about Octopart API being down
Browse files Browse the repository at this point in the history
  • Loading branch information
kasbah committed Jul 9, 2022
1 parent 3797605 commit d0fa985
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ import * as reactRedux from 'react-redux'
import * as redux from 'redux'
import './messages.css'

import {actions} from './state'
import { actions } from './state'

function Messages(props) {
return (
<div className="messages">
<semantic.Message
key="octopart"
negative
>
<semantic.Message.Header>Octopart API is down</semantic.Message.Header>
<semantic.Message.Content>We apologise but the Octopart API seems to be down. The BOM Builder will not work without it. Please try again later.</semantic.Message.Content>
</semantic.Message>
{props.buyPartsMessages.slice(0, 3).map(message => {
const vendor = message.getIn(['sku', 'vendor'])
const title = `Problem with adding part to ${vendor} cart`
Expand Down

0 comments on commit d0fa985

Please sign in to comment.