Refactor of team websites.
This commit is contained in:
@@ -113,7 +113,7 @@ export function DateFilter({
|
||||
value={value}
|
||||
alignment={alignment}
|
||||
placeholder={formatMessage(labels.selectDate)}
|
||||
onSelect={key => handleChange(key as any)}
|
||||
onChange={key => handleChange(key as any)}
|
||||
>
|
||||
{({ label, value, divider }) => (
|
||||
<Item key={value} divider={divider}>
|
||||
|
||||
@@ -50,7 +50,7 @@ export function WebsiteSelect({
|
||||
value={selectedId as string}
|
||||
renderValue={renderValue}
|
||||
renderEmpty={renderEmpty}
|
||||
onSelect={handleSelect}
|
||||
onChange={handleSelect}
|
||||
alignment="end"
|
||||
placeholder={formatMessage(labels.selectWebsite)}
|
||||
allowSearch={true}
|
||||
|
||||
@@ -238,13 +238,9 @@ export const messages = defineMessages({
|
||||
id: 'message.team-already-member',
|
||||
defaultMessage: 'You are already a member of the team.',
|
||||
},
|
||||
deleteAccount: {
|
||||
id: 'message.delete-account',
|
||||
defaultMessage: 'To delete this account, type {confirmation} in the box below to confirm.',
|
||||
},
|
||||
deleteWebsite: {
|
||||
id: 'message.delete-website',
|
||||
defaultMessage: 'To delete this website, type {confirmation} in the box below to confirm.',
|
||||
actionConfirmation: {
|
||||
id: 'message.action-confirmation',
|
||||
defaultMessage: 'Type {confirmation} in the box below to confirm.',
|
||||
},
|
||||
resetWebsite: {
|
||||
id: 'message.reset-website',
|
||||
@@ -263,6 +259,10 @@ export const messages = defineMessages({
|
||||
id: 'message.delete-website-warning',
|
||||
defaultMessage: 'All website data will be deleted.',
|
||||
},
|
||||
deleteTeamWarning: {
|
||||
id: 'message.delete-team-warning',
|
||||
defaultMessage: 'Deleting a team will also delete all team websites.',
|
||||
},
|
||||
noResultsFound: {
|
||||
id: 'message.no-results-found',
|
||||
defaultMessage: 'No results found.',
|
||||
|
||||
Reference in New Issue
Block a user