Unify workspace dropdowns; Update layouts (#458)
Unified Account and Workspace drop-downs; Layout updates, now header lives within the PageBody component; Sidebars now use floating variant
This commit is contained in:
committed by
GitHub
parent
ca585e09be
commit
4bc8448a1d
@@ -126,7 +126,7 @@ export function CreateEntityForm() {
|
||||
reValidateMode: 'onChange',
|
||||
});
|
||||
|
||||
const onSubmit = (data: z.infer<typeof CreateEntitySchema>) => {
|
||||
const onSubmit = (data: z.output<typeof CreateEntitySchema>) => {
|
||||
setError(false);
|
||||
|
||||
startTransition(async () => {
|
||||
@@ -147,7 +147,7 @@ export function CreateEntityForm() {
|
||||
<If condition={error}>
|
||||
<Alert variant="destructive">
|
||||
<AlertDescription>
|
||||
<Trans i18nKey="common:errors.generic" />
|
||||
<Trans i18nKey="common.errors.generic" />
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
</If>
|
||||
@@ -177,9 +177,9 @@ export function CreateEntityForm() {
|
||||
data-test="submit-entity-button"
|
||||
>
|
||||
{pending ? (
|
||||
<Trans i18nKey="common:creating" />
|
||||
<Trans i18nKey="common.creating" />
|
||||
) : (
|
||||
<Trans i18nKey="common:create" />
|
||||
<Trans i18nKey="common.create" />
|
||||
)}
|
||||
</Button>
|
||||
</Form>
|
||||
|
||||
@@ -145,7 +145,7 @@ import { toast } from '@kit/ui/sonner';
|
||||
<If condition={error}>
|
||||
<Alert variant="destructive">
|
||||
<AlertDescription>
|
||||
<Trans i18nKey="common:errors.generic" />
|
||||
<Trans i18nKey="common.errors.generic" />
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
</If>
|
||||
@@ -160,9 +160,9 @@ import { toast } from '@kit/ui/sonner';
|
||||
data-test="submit-button"
|
||||
>
|
||||
{pending ? (
|
||||
<Trans i18nKey="common:submitting" />
|
||||
<Trans i18nKey="common.submitting" />
|
||||
) : (
|
||||
<Trans i18nKey="common:submit" />
|
||||
<Trans i18nKey="common.submit" />
|
||||
)}
|
||||
</Button>
|
||||
```
|
||||
@@ -199,7 +199,7 @@ export function MyForm() {
|
||||
mode: 'onChange',
|
||||
});
|
||||
|
||||
const onSubmit = (data: z.infer<typeof MySchema>) => {
|
||||
const onSubmit = (data: z.output<typeof MySchema>) => {
|
||||
setError(false);
|
||||
|
||||
startTransition(async () => {
|
||||
@@ -220,7 +220,7 @@ export function MyForm() {
|
||||
<If condition={error}>
|
||||
<Alert variant="destructive">
|
||||
<AlertDescription>
|
||||
<Trans i18nKey="common:errors.generic" />
|
||||
<Trans i18nKey="common.errors.generic" />
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
</If>
|
||||
|
||||
Reference in New Issue
Block a user