mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
6dbb2df5b8
* Remove source-editor-toolbar split test * Remove editor-left-menu split test * Remove paste-html split test * Remove figure-modal split test * Remove rich-text split test * Remove table-generator split test GitOrigin-RevId: e3fe415b81ff0135d8764cd3f3c91b1dd4a77cf0
35 lines
712 B
TypeScript
35 lines
712 B
TypeScript
import { ScopeDecorator } from './decorators/scope'
|
|
import { FeedbackBadge } from '@/shared/components/feedback-badge'
|
|
|
|
export const WithDefaultText = () => {
|
|
return (
|
|
<FeedbackBadge
|
|
url="https://example.com"
|
|
id="storybook-feedback-with-text"
|
|
/>
|
|
)
|
|
}
|
|
|
|
export const WithCustomText = () => {
|
|
const FeedbackContent = () => (
|
|
<>
|
|
This is an example.
|
|
<br />
|
|
Click to find out more
|
|
</>
|
|
)
|
|
|
|
return (
|
|
<FeedbackBadge
|
|
url="https://example.com"
|
|
id="storybook-feedback-with-text"
|
|
text={<FeedbackContent />}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default {
|
|
title: 'Shared / Components / Feedback Badge',
|
|
component: FeedbackBadge,
|
|
decorators: [ScopeDecorator],
|
|
}
|