mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 18:09:09 +00:00
chore: restructure project into yarn workspaces, remove next
This commit is contained in:
parent
49e308507e
commit
8d06327c03
266 changed files with 16466 additions and 3350 deletions
33
packages/design-system/organisms/preauth/Preauth.stories.tsx
Normal file
33
packages/design-system/organisms/preauth/Preauth.stories.tsx
Normal file
|
@ -0,0 +1,33 @@
|
|||
import * as React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { guild } from '../../fixtures/storyData';
|
||||
import { Preauth } from './Preauth';
|
||||
|
||||
export default {
|
||||
title: 'Organisms/Preauth',
|
||||
component: Preauth,
|
||||
};
|
||||
|
||||
const Center = styled.div`
|
||||
margin: 0 auto;
|
||||
`;
|
||||
|
||||
export const NoSlug = ({ onSendSecretCode }) => {
|
||||
return (
|
||||
<Center>
|
||||
<Preauth botName="roleypoly#3266" onSendSecretCode={onSendSecretCode} />
|
||||
</Center>
|
||||
);
|
||||
};
|
||||
|
||||
export const WithSlug = ({ onSendSecretCode }) => {
|
||||
return (
|
||||
<Center>
|
||||
<Preauth
|
||||
botName="roleypoly#3266"
|
||||
guildSlug={guild}
|
||||
onSendSecretCode={onSendSecretCode}
|
||||
/>
|
||||
</Center>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue