Refactor of team websites.

This commit is contained in:
Mike Cao 2024-01-18 16:46:40 -08:00
parent 2552e1d495
commit dc3818baaa
22 changed files with 61 additions and 208 deletions

View file

@ -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}>

View file

@ -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}

View file

@ -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.',