4.0.0 • Published 4 months ago

xdesk v4.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

XDesk v3.0.5

Installation

Using npm:

npm i --save xdesk
or
yarn add xdesk

In React.js:

import React, { useState } from "react";
import XDesk from "xdesk";

const App = () => {
    const user = {
        name: "Imrul Afnan", //required
        email: "test@example.com", //required
        img: "https://a.storyblok.com/f/191576/1200x800/215e59568f/round_profil_picture_after_.webp", //recommanded
        phone: "016XXX-XXXXX"
        .............
    }
    const [loading, setLoading] = useState(false)
  return (
    <div>
        <------ Rest code ------>
        <XDesk
            details={user}
            isAdmin={false} // true for admin Account & false for client account
            secretKey="SECRET_KEY"
            setLoader={ status => setLoading(status)}
          >
            <div className="btn btn-danger">{loading ? "Please Wait" : "Open Ticket"}</div> //customizeable
        </XDesk>
        <------ Rest code ------>
    </div>
  );
};

See the www.XDesk.com for COMPANY_ID, CLIENT_ID & ADMIN_ID.

3.0.9

4 months ago

3.0.12

4 months ago

3.0.13

4 months ago

3.0.10

4 months ago

3.0.11

4 months ago

3.0.8

4 months ago

3.0.7

4 months ago

3.0.6

4 months ago

3.0.5

4 months ago

4.0.0

4 months ago

3.0.4

4 months ago

3.0.3

5 months ago

3.0.2

5 months ago

3.0.1

5 months ago

3.0.0

5 months ago

2.0.9

5 months ago

2.0.8

5 months ago

2.0.7

5 months ago

2.0.6

5 months ago

2.0.5

5 months ago

2.0.4

5 months ago

2.0.3

5 months ago

2.0.2

5 months ago

2.0.1

5 months ago

2.0.0

5 months ago

1.1.0

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago