remove username from user display

Signed-off-by: Marko Simon <marko@ilert.com>
This commit is contained in:
Marko Simon
2022-09-29 12:30:33 +02:00
parent 3328ae8889
commit f41d2d69a6
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -521,7 +521,7 @@ export class ILertClient implements ILertApi {
if (!user.firstName && !user.lastName) {
return user.username;
}
return `${user.firstName} ${user.lastName} (${user.username})`;
return `${user.firstName} ${user.lastName}`;
}
private async apiUrl() {
@@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import Button from '@material-ui/core/Button';
import Grid from '@material-ui/core/Grid';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import RepeatIcon from '@material-ui/icons/Repeat';
import { Shift } from '../../types';
import { DateTime as dt } from 'luxon';
import { makeStyles } from '@material-ui/core/styles';
import React from 'react';
import { Shift } from '../../types';
import { ShiftOverrideModal } from '../Shift/ShiftOverrideModal';
const useStyles = makeStyles({
@@ -71,7 +71,7 @@ export const OnCallShiftItem = ({
{shift && shift.user ? (
<Grid item sm={12}>
<Typography variant="subtitle1" noWrap>
{`${shift.user.firstName} ${shift.user.lastName} (${shift.user.username})`}
{`${shift.user.firstName} ${shift.user.lastName}`}
</Typography>
</Grid>
) : null}