diff --git a/frontend/packages/shared/src/components/atoms/AltinnContentIcon.tsx b/frontend/packages/shared/src/components/atoms/AltinnContentIcon.tsx
deleted file mode 100644
index 0f8e5c06b5c..00000000000
--- a/frontend/packages/shared/src/components/atoms/AltinnContentIcon.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import React from 'react';
-
-export function AltinnContentIcon() {
- return (
- <>
-
-
-
-
-
-
-
-
-
-
-
- >
- );
-}
-
-export default AltinnContentIcon;
diff --git a/frontend/packages/shared/src/components/molecules/AltinnContentLoader.tsx b/frontend/packages/shared/src/components/molecules/AltinnContentLoader.tsx
index d8a98675fc5..d80ec5e8bbd 100644
--- a/frontend/packages/shared/src/components/molecules/AltinnContentLoader.tsx
+++ b/frontend/packages/shared/src/components/molecules/AltinnContentLoader.tsx
@@ -1,23 +1,24 @@
-import React from 'react';
+import React, { type ReactNode } from 'react';
import type { IContentLoaderProps } from 'react-content-loader';
import ContentLoader from 'react-content-loader';
-import AltinnContentIconComponent from '../atoms/AltinnContentIcon';
export type IAltinnContentLoaderProps = {
/** The height of the loader, defaults to 200 */
height?: number;
/** The width of the loader, defaults to 400 */
width?: number;
+ children: ReactNode;
} & IContentLoaderProps;
-export const AltinnContentLoader = (props: React.PropsWithChildren) => {
+export const AltinnContentLoader = ({
+ height,
+ width,
+ children,
+ ...rest
+}: IAltinnContentLoaderProps) => {
return (
-
- {props.children ? props.children : }
+
+ {children}
);
};