Skip to content

Commit

Permalink
chore: rename browser device type to web
Browse files Browse the repository at this point in the history
  • Loading branch information
pepyta committed Aug 1, 2021
1 parent 6abce11 commit 3f7cccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/devices/DeviceItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const DeviceItem = (props: DeviceItemProps) => {
style={{ backgroundColor: theme.colors.surface }}
title={props.device.name}
description={`Logged in at ${new Date(props.device.loggedInAt).toLocaleDateString()}`}
left={p => <List.Icon {...p} icon={props.device.type === "BROWSER" ? "web" : props.device.type === "MOBILE" ? "cellphone" : "laptop"} />}>
left={p => <List.Icon {...p} icon={props.device.type === "WEB" ? "web" : props.device.type === "MOBILE" ? "cellphone" : "laptop"} />}>
<List.Item
title={"Device name"}
description={props.device.name}
Expand Down
2 changes: 1 addition & 1 deletion lib/api/Device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type DeviceType = {
name: string;
loggedInAt: string;
rsaKey: string;
type: "MOBILE" | "BROWSER" | "DESKTOP" | "CLI";
type: "MOBILE" | "WEB" | "DESKTOP" | "CLI";
};

export default class Device {
Expand Down

0 comments on commit 3f7cccc

Please sign in to comment.