Skip to content

Commit

Permalink
Fixing icon in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
humphreyja committed Oct 9, 2024
1 parent 286d5b6 commit 63c72a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ApplicationAlert/ApplicationAlert.stories.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import ApplicationAlert from '@harvest-profit/npk/ApplicationAlert';
import { MaintenanceIcon } from '@harvest-profit/npk/icons';
import { Maintenance } from '@harvest-profit/npk/icons';

const icons = { None: null, MaintenanceIcon }
const icons = { None: null, Maintenance }

export default {
title: 'Components/ApplicationAlert',
Expand Down Expand Up @@ -42,6 +42,6 @@ export default {
}

export const Default = () => <ApplicationAlert>Example of an application wide alert</ApplicationAlert>
export const WithIcon = () => <ApplicationAlert icon={MaintenanceIcon}>We are performing a update to our services from 2am to 4am on Wednesday.</ApplicationAlert>
export const WithIconElement = () => <ApplicationAlert icon={<MaintenanceIcon />}>Example of an application wide alert</ApplicationAlert>
export const WithIcon = () => <ApplicationAlert icon={Maintenance}>We are performing a update to our services from 2am to 4am on Wednesday.</ApplicationAlert>
export const WithIconElement = () => <ApplicationAlert icon={<Maintenance />}>Example of an application wide alert</ApplicationAlert>
export const DemoUpgrade = () => <ApplicationAlert variant="primary" as="a" href="https://harvestprofit.com/pricing">You have 6 days left on your trial. <b>Upgrade your account here »</b></ApplicationAlert>

0 comments on commit 63c72a5

Please sign in to comment.