1.1.0 • Published 2 years ago

@yemredurur/feedback-app v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Feedback Component App

This project is a feedback system for websites. It enables customers to provide feedback and saves it to Firebase.

Installation

To install, you can use npm or yarn:

$ npm install --save @yemredurur/feedback-app
$ yarn add @yemredurur/feedback-app

Component Properties

PropertiesTypeReqDefaultDesc
titlestringfalsePlease Send Your FeedBackFeedback modal title
rootIdstringtruenullFeedback modal appends that root
companyIdnumbertruenullCompany special id
companyNamenumbertruenullCompany name that user whant
maxTextLengthnumberfalse2000Max text for feedback
minTextLengthnumberfalse10Min text for feedback
showCountLeftTextbooleanfalsetrueShows how many letters has left
successMessagestringfalseWE HAVE GOT YOUR FEEDBACKSuccess message when feedback send
errorMessagestringfalseThere is a problem please try again!Error message when service error
onClickEventfuncfalse() => voidEvent function when user clicks feedback icon
onSendEventfuncfalse() => voidEvent function when user clicks send button
onCloseEventfuncfalse() => voidEvent function when user closes feedback modal

Useage Example

import React from 'react';
import FeedBack from '@yemredurur/feedback-app';

function App() {

  const buttonClick = () => [
    console.log('Button Click')
  ]

  const onSend = () => [
    console.log('On send')
  ]

  const onClose = () => [
    console.log('On close')
  ]

  return (
    <>
      <FeedBack 
        rootId='root' 
        title={TITLE} 
        companyId={COMPANY_ID}
        companyName={COMPANY_NAME} 
        onClickEvent={buttonClick}
        onSendEvent={onSend}
        onCloseEvent={onClose}
      />
    </>
  )
}

Technologies Used

This project was built with the following technologies:

  • React - A JavaScript library for building user interfaces.
  • TypeScript - TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.
  • Jest - A delightful JavaScript testing framework with a focus on simplicity.
  • Firebase - Firebase is an app development platform that helps you build and grow apps and games users love. Backed by Google and trusted by millions of businesses around the world.
1.1.0

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago