Tag

Router

class TagRouter()

Tag router for directing between tag list and new

Tags List

class TagList(props)

Tag card list component

TagList.getTags()

Get tags info from API

TagList.handleDeleteTag(tag_id, event)

Make delete tag request of API

Arguments
  • tag_id (*) – Tag ID

  • event (*) – Event Data

TagGrid(props)

Tag card grid component

Arguments
  • props (*) – Properties

Returns

Grid component

TagCard(props)

Tag card component

Arguments
  • props (*) – Properties

Returns

Card component

Map tag name to URL

Arguments
  • tagName (*) – Subject tag name

Returns

Tag URL

New Tag Card

class NewTag(props)

New tag card component

NewTag.handleInputChange(event)

Handle tag id input box state changes

Arguments
  • event (*) –

NewTag.handleSubmit(event)

Validate input, make new tag API request

Arguments
  • event (*) –