Name stays required; description is a labelled optional textarea. Email uses native validity and form submit. Drop the dead workshop link and fix a few copy errors. Co-authored-by: Cursor <cursoragent@cursor.com>
39 lines
914 B
JavaScript
39 lines
914 B
JavaScript
import { CreateFlowTextFieldScreen } from "../../app/(app)/create/screens/text/CreateFlowTextFieldScreen";
|
|
|
|
export default {
|
|
title: "Pages/Create Flow/Community name",
|
|
component: CreateFlowTextFieldScreen,
|
|
parameters: { layout: "fullscreen" },
|
|
};
|
|
|
|
export const Default = {
|
|
args: {
|
|
messageNamespace: "create.community.communityName",
|
|
stateField: "title",
|
|
maxLength: 48,
|
|
required: true,
|
|
},
|
|
};
|
|
|
|
export const CommunityDescription = {
|
|
args: {
|
|
messageNamespace: "create.community.communityContext",
|
|
stateField: "communityContext",
|
|
maxLength: 200,
|
|
mainAlign: "center",
|
|
multiline: true,
|
|
},
|
|
};
|
|
|
|
export const CommunitySave = {
|
|
args: {
|
|
messageNamespace: "create.community.communitySave",
|
|
stateField: "communitySaveEmail",
|
|
maxLength: 254,
|
|
mainAlign: "center",
|
|
inputType: "email",
|
|
showCharacterCount: false,
|
|
headerJustification: "center",
|
|
},
|
|
};
|