overleaf/services/web/frontend/stories/feedback-badge.stories.tsx
Alf Eaton 6dbb2df5b8 Remove editor split tests (#14985)
* 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
2023-10-04 08:04:34 +00:00

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],
}