1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

docs: swizzle root and add feedback component

This commit is contained in:
Thomas Heartman 2022-02-24 16:28:05 +01:00
parent 105f3bac21
commit 0160eb8ef3
3 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import React from 'react';
import Component from './UserFeedback';
import Component from './index';
export default {
title: 'User feedback component',

13
website/src/theme/Root.js Normal file
View File

@ -0,0 +1,13 @@
import React from 'react';
import UF from '@site/src/components/UserFeedback';
// Default implementation, that you can customize
function Root({ children }) {
return (
<>
{children} <UF />
</>
);
}
export default Root;