@hed-hog/ticket 0.0.299 → 0.0.301

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ import {
10
10
  import { Badge } from '@/components/ui/badge';
11
11
  import { Button } from '@/components/ui/button';
12
12
  import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
13
+ import { FormActions } from '@/components/ui/form-actions';
13
14
  import {
14
15
  Form,
15
16
  FormControl,
@@ -30,7 +31,6 @@ import {
30
31
  Sheet,
31
32
  SheetContent,
32
33
  SheetDescription,
33
- SheetFooter,
34
34
  SheetHeader,
35
35
  SheetTitle,
36
36
  } from '@/components/ui/sheet';
@@ -461,13 +461,17 @@ export default function TicketChannelAccountsPage() {
461
461
  )}
462
462
  />
463
463
 
464
- <SheetFooter>
465
- <Button type="submit" className="w-full">
466
- {editingId
464
+ <FormActions
465
+ sheet
466
+ cancelLabel={t('common.cancel')}
467
+ onCancel={() => setIsSheetOpen(false)}
468
+ submitLabel={
469
+ editingId
467
470
  ? t('channelAccounts.form.submitUpdate')
468
- : t('channelAccounts.form.submitCreate')}
469
- </Button>
470
- </SheetFooter>
471
+ : t('channelAccounts.form.submitCreate')
472
+ }
473
+ submitType="submit"
474
+ />
471
475
  </form>
472
476
  </Form>
473
477
  </SheetContent>
@@ -10,6 +10,7 @@ import {
10
10
  import { Badge } from '@/components/ui/badge';
11
11
  import { Button } from '@/components/ui/button';
12
12
  import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
13
+ import { FormActions } from '@/components/ui/form-actions';
13
14
  import {
14
15
  Form,
15
16
  FormControl,
@@ -30,7 +31,6 @@ import {
30
31
  Sheet,
31
32
  SheetContent,
32
33
  SheetDescription,
33
- SheetFooter,
34
34
  SheetHeader,
35
35
  SheetTitle,
36
36
  } from '@/components/ui/sheet';
@@ -390,13 +390,17 @@ export default function TicketChannelsPage() {
390
390
  )}
391
391
  />
392
392
 
393
- <SheetFooter>
394
- <Button type="submit" className="w-full">
395
- {editingId
393
+ <FormActions
394
+ sheet
395
+ cancelLabel={t('common.cancel')}
396
+ onCancel={() => setIsSheetOpen(false)}
397
+ submitLabel={
398
+ editingId
396
399
  ? t('channels.form.submitUpdate')
397
- : t('channels.form.submitCreate')}
398
- </Button>
399
- </SheetFooter>
400
+ : t('channels.form.submitCreate')
401
+ }
402
+ submitType="submit"
403
+ />
400
404
  </form>
401
405
  </Form>
402
406
  </SheetContent>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/ticket",
3
- "version": "0.0.299",
3
+ "version": "0.0.301",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -10,13 +10,13 @@
10
10
  "@nestjs/jwt": "^11",
11
11
  "@nestjs/mapped-types": "*",
12
12
  "@hed-hog/api": "0.0.6",
13
- "@hed-hog/api-pagination": "0.0.7",
14
- "@hed-hog/api-types": "0.0.1",
15
13
  "@hed-hog/api-prisma": "0.0.6",
16
- "@hed-hog/tag": "0.0.299",
17
- "@hed-hog/contact": "0.0.299",
14
+ "@hed-hog/api-types": "0.0.1",
15
+ "@hed-hog/api-pagination": "0.0.7",
16
+ "@hed-hog/category": "0.0.301",
17
+ "@hed-hog/tag": "0.0.301",
18
18
  "@hed-hog/api-locale": "0.0.14",
19
- "@hed-hog/category": "0.0.299"
19
+ "@hed-hog/contact": "0.0.301"
20
20
  },
21
21
  "exports": {
22
22
  ".": {