mirror of
https://github.com/responsively-org/responsively-app
synced 2024-11-10 14:54:12 +00:00
Generating id while creating a new device
This commit is contained in:
parent
c9f0c58973
commit
8475f275a0
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
import { Device } from 'common/deviceList';
|
||||
import { randomUUID } from 'crypto';
|
||||
import { useEffect, useState } from 'react';
|
||||
import Button from '../Button';
|
||||
import Input from '../Input';
|
||||
|
@ -93,6 +94,7 @@ const DeviceDetailsModal = ({
|
|||
}
|
||||
await onAddDevice(
|
||||
{
|
||||
id: randomUUID(),
|
||||
name,
|
||||
width,
|
||||
height,
|
||||
|
|
Loading…
Reference in a new issue