Fix organization setup flow: redirect to onboarding for incomplete setup
This commit is contained in:
8
components/ui/Question.tsx
Normal file
8
components/ui/Question.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import React from 'react';
|
||||
import { Field } from './Inputs';
|
||||
|
||||
interface QuestionProps { label: string; required?: boolean; description?: string; error?: string; children: React.ReactNode; }
|
||||
export const Question: React.FC<QuestionProps> = ({ label, required, description, error, children }) => (
|
||||
<Field label={label} required={required} description={description} error={error}>{children}</Field>
|
||||
);
|
||||
export default Question;
|
||||
Reference in New Issue
Block a user