Skip to content

Commit

Permalink
chore(cleanup) remove dead code
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Feb 16, 2024
1 parent 7beabde commit d6d00bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
8 changes: 1 addition & 7 deletions src/pages/networks/NetworkForwards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,7 @@ const NetworkForwards: FC<Props> = ({ network, project }) => {
defaultSort="listenAddress"
defaultSortDirection="ascending"
className="u-table-layout--auto network-forwards-table"
emptyStateMsg={
isLoading ? (
<Loader text="Loading network forwards..." />
) : (
"No data to display"
)
}
emptyStateMsg="No data to display"
/>
</ScrollableTable>
)}
Expand Down
8 changes: 1 addition & 7 deletions src/pages/networks/NetworkList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,7 @@ const NetworkList: FC = () => {
responsive
sortable
className="u-table-layout--auto"
emptyStateMsg={
isLoading ? (
<Loader text="Loading networks..." />
) : (
"No data to display"
)
}
emptyStateMsg="No data to display"
/>
)}
{!isLoading && !hasNetworks && (
Expand Down
2 changes: 1 addition & 1 deletion src/util/limits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const parseMemoryLimit = (limit?: string): MemoryLimit | undefined => {
}
if (limit.includes("%")) {
return {
value: limit ? parseInt(limit) : undefined,
value: parseInt(limit),
unit: "%",
selectedType: MEM_LIMIT_TYPE.PERCENT,
};
Expand Down

0 comments on commit d6d00bc

Please sign in to comment.