Skip to content

Commit

Permalink
Fix alert samples (#5877)
Browse files Browse the repository at this point in the history
  • Loading branch information
laske185 authored Jan 9, 2024
2 parents fab00ec + bcb15ea commit 0348a5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/alert/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class KolAlertWc implements API {
{typeof this.state._label === 'string' && this.state._label?.length > 0 && (
<kol-heading-wc _label={this.state._label} _level={this.state._level}></kol-heading-wc>
)}
{this._variant === 'msg' && (
{this.state._variant === 'msg' && (
<div class="content">
<slot />
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/samples/react/src/components/alert/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const AlertByType: FC<PropsByType> = ({ level, type, variant }) => (
</>
);

export const AlertBasic: FC<PropsBasic> = ({ variant }) => (
export const AlertBasic: FC<PropsBasic> = ({ variant = 'msg' }) => (
<div className="grid gap-4">
<AlertByType level={1} type="default" variant={variant} />
<AlertByType level={2} type="error" variant={variant} />
Expand Down

0 comments on commit 0348a5c

Please sign in to comment.