fix: disable timezone selection button for non-admin users (#8195)
This commit is contained in:
parent
c685042a47
commit
dbc5a6348d
2 changed files with 1 additions and 5 deletions
|
|
@ -411,6 +411,7 @@ export function ProjectDetailsForm(props: IProjectDetailsForm) {
|
|||
}}
|
||||
error={Boolean(errors.timezone)}
|
||||
buttonClassName="border-none"
|
||||
disabled={!isAdmin}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -59,11 +59,6 @@ const useTimezone = () => {
|
|||
query: "utc, coordinated universal time",
|
||||
content: "UTC",
|
||||
},
|
||||
{
|
||||
value: "Universal",
|
||||
query: "universal, coordinated universal time",
|
||||
content: "Universal",
|
||||
},
|
||||
];
|
||||
|
||||
const selectedTimezone = (value: string | undefined) => options.find((option) => option.value === value)?.content;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue