|
|
@@ -35,118 +35,114 @@ exports[`Render should render CTA if there are no API keys 1`] = `
|
|
|
<PageContents
|
|
|
isLoading={false}
|
|
|
>
|
|
|
- <div
|
|
|
- className="page-container page-body"
|
|
|
- >
|
|
|
- <EmptyListCTA
|
|
|
- model={
|
|
|
- Object {
|
|
|
- "buttonIcon": "fa fa-plus",
|
|
|
- "buttonLink": "#",
|
|
|
- "buttonTitle": " New API Key",
|
|
|
- "onClick": [Function],
|
|
|
- "proTip": "Remember you can provide view-only API access to other applications.",
|
|
|
- "proTipLink": "",
|
|
|
- "proTipLinkTitle": "",
|
|
|
- "proTipTarget": "_blank",
|
|
|
- "title": "You haven't added any API Keys yet.",
|
|
|
- }
|
|
|
+ <EmptyListCTA
|
|
|
+ model={
|
|
|
+ Object {
|
|
|
+ "buttonIcon": "fa fa-plus",
|
|
|
+ "buttonLink": "#",
|
|
|
+ "buttonTitle": " New API Key",
|
|
|
+ "onClick": [Function],
|
|
|
+ "proTip": "Remember you can provide view-only API access to other applications.",
|
|
|
+ "proTipLink": "",
|
|
|
+ "proTipLinkTitle": "",
|
|
|
+ "proTipTarget": "_blank",
|
|
|
+ "title": "You haven't added any API Keys yet.",
|
|
|
}
|
|
|
- />
|
|
|
- <Component
|
|
|
- in={false}
|
|
|
+ }
|
|
|
+ />
|
|
|
+ <Component
|
|
|
+ in={false}
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ className="cta-form"
|
|
|
>
|
|
|
- <div
|
|
|
- className="cta-form"
|
|
|
+ <button
|
|
|
+ className="cta-form__close btn btn-transparent"
|
|
|
+ onClick={[Function]}
|
|
|
>
|
|
|
- <button
|
|
|
- className="cta-form__close btn btn-transparent"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <i
|
|
|
- className="fa fa-close"
|
|
|
- />
|
|
|
- </button>
|
|
|
- <h5>
|
|
|
- Add API Key
|
|
|
- </h5>
|
|
|
- <form
|
|
|
- className="gf-form-group"
|
|
|
- onSubmit={[Function]}
|
|
|
+ <i
|
|
|
+ className="fa fa-close"
|
|
|
+ />
|
|
|
+ </button>
|
|
|
+ <h5>
|
|
|
+ Add API Key
|
|
|
+ </h5>
|
|
|
+ <form
|
|
|
+ className="gf-form-group"
|
|
|
+ onSubmit={[Function]}
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ className="gf-form-inline"
|
|
|
>
|
|
|
<div
|
|
|
- className="gf-form-inline"
|
|
|
+ className="gf-form max-width-21"
|
|
|
>
|
|
|
- <div
|
|
|
- className="gf-form max-width-21"
|
|
|
+ <span
|
|
|
+ className="gf-form-label"
|
|
|
>
|
|
|
- <span
|
|
|
- className="gf-form-label"
|
|
|
- >
|
|
|
- Key name
|
|
|
- </span>
|
|
|
- <input
|
|
|
- className="gf-form-input"
|
|
|
- onChange={[Function]}
|
|
|
- placeholder="Name"
|
|
|
- type="text"
|
|
|
- value=""
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div
|
|
|
- className="gf-form"
|
|
|
+ Key name
|
|
|
+ </span>
|
|
|
+ <input
|
|
|
+ className="gf-form-input"
|
|
|
+ onChange={[Function]}
|
|
|
+ placeholder="Name"
|
|
|
+ type="text"
|
|
|
+ value=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ className="gf-form"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ className="gf-form-label"
|
|
|
>
|
|
|
- <span
|
|
|
- className="gf-form-label"
|
|
|
- >
|
|
|
- Role
|
|
|
- </span>
|
|
|
- <span
|
|
|
- className="gf-form-select-wrapper"
|
|
|
+ Role
|
|
|
+ </span>
|
|
|
+ <span
|
|
|
+ className="gf-form-select-wrapper"
|
|
|
+ >
|
|
|
+ <select
|
|
|
+ className="gf-form-input gf-size-auto"
|
|
|
+ onChange={[Function]}
|
|
|
+ value="Viewer"
|
|
|
>
|
|
|
- <select
|
|
|
- className="gf-form-input gf-size-auto"
|
|
|
- onChange={[Function]}
|
|
|
+ <option
|
|
|
+ key="Viewer"
|
|
|
+ label="Viewer"
|
|
|
value="Viewer"
|
|
|
>
|
|
|
- <option
|
|
|
- key="Viewer"
|
|
|
- label="Viewer"
|
|
|
- value="Viewer"
|
|
|
- >
|
|
|
- Viewer
|
|
|
- </option>
|
|
|
- <option
|
|
|
- key="Editor"
|
|
|
- label="Editor"
|
|
|
- value="Editor"
|
|
|
- >
|
|
|
- Editor
|
|
|
- </option>
|
|
|
- <option
|
|
|
- key="Admin"
|
|
|
- label="Admin"
|
|
|
- value="Admin"
|
|
|
- >
|
|
|
- Admin
|
|
|
- </option>
|
|
|
- </select>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- className="gf-form"
|
|
|
+ Viewer
|
|
|
+ </option>
|
|
|
+ <option
|
|
|
+ key="Editor"
|
|
|
+ label="Editor"
|
|
|
+ value="Editor"
|
|
|
+ >
|
|
|
+ Editor
|
|
|
+ </option>
|
|
|
+ <option
|
|
|
+ key="Admin"
|
|
|
+ label="Admin"
|
|
|
+ value="Admin"
|
|
|
+ >
|
|
|
+ Admin
|
|
|
+ </option>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ className="gf-form"
|
|
|
+ >
|
|
|
+ <button
|
|
|
+ className="btn gf-form-btn btn-success"
|
|
|
>
|
|
|
- <button
|
|
|
- className="btn gf-form-btn btn-success"
|
|
|
- >
|
|
|
- Add
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+ Add
|
|
|
+ </button>
|
|
|
</div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- </Component>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </Component>
|
|
|
</PageContents>
|
|
|
</Page>
|
|
|
`;
|