Refactored instant loading setup

This commit is contained in:
squidfunk
2020-03-28 17:40:46 +01:00
parent 4d370fe903
commit edc9d6fc61
11 changed files with 114 additions and 116 deletions

View File

@@ -53,14 +53,14 @@ const path =
*
* @return Element
*/
export function renderClipboard(
export function renderClipboardButton(
id: string
) {
return (
<button
class={css.container}
title={translate("clipboard.copy")}
data-clipboard-target={`#${id} code`}
data-clipboard-target={`#${id} > code`}
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d={path}></path>