feat: consolidar desenvolvimentos do portal InvestMoz
This commit is contained in:
@@ -344,9 +344,11 @@ function InternalStaffGrant({
|
||||
function Grant({
|
||||
types,
|
||||
organizations,
|
||||
technicalSupportAvailable = false,
|
||||
}: {
|
||||
types: string[];
|
||||
organizations: { id: string; name: string }[];
|
||||
technicalSupportAvailable?: boolean;
|
||||
}) {
|
||||
const [user, setUser] = useState('');
|
||||
const [role, setRole] = useState('validator');
|
||||
@@ -436,8 +438,27 @@ function Grant({
|
||||
setResponsibilities([]);
|
||||
}}
|
||||
>
|
||||
{['validator', 'publisher', 'auditor'].map((v) => (
|
||||
<option key={v}>{v}</option>
|
||||
{[
|
||||
'validator',
|
||||
'publisher',
|
||||
'auditor',
|
||||
...(technicalSupportAvailable
|
||||
? ['technical_support']
|
||||
: []),
|
||||
].map((v) => (
|
||||
<option key={v} value={v}>
|
||||
{
|
||||
(
|
||||
{
|
||||
validator: 'Validador',
|
||||
publisher: 'Publicador',
|
||||
auditor: 'Auditor',
|
||||
technical_support:
|
||||
'Suporte técnico',
|
||||
} as Record<string, string>
|
||||
)[v]
|
||||
}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</label>
|
||||
@@ -839,7 +860,9 @@ export default function Administration({
|
||||
operatorOrganizations,
|
||||
internalTypes,
|
||||
staffAccounts,
|
||||
technicalSupportAvailable = false,
|
||||
}: {
|
||||
technicalSupportAvailable?: boolean;
|
||||
operatorOrganizations: OperatorOrganization[];
|
||||
internalTypes: string[];
|
||||
staffAccounts: {
|
||||
@@ -920,7 +943,11 @@ export default function Administration({
|
||||
organizations={organizations}
|
||||
operators={operatorOrganizations}
|
||||
/>
|
||||
<Grant types={types} organizations={organizations} />
|
||||
<Grant
|
||||
types={types}
|
||||
organizations={organizations}
|
||||
technicalSupportAvailable={technicalSupportAvailable}
|
||||
/>
|
||||
<Security
|
||||
pair={pair}
|
||||
entries={securityRequests}
|
||||
|
||||
Reference in New Issue
Block a user