Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
echo "store=$(pnpm store path)" >> $GITHUB_OUTPUT

- name: Restore pnpm cache
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ${{ steps.pnpm-cache.outputs.store }}
key: ${{ runner.os }}-pnpm-store-cache-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format-and-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
id: date
run: echo "date=$(/bin/date -u "+%Y-%m-%d")" >> $GITHUB_OUTPUT

- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
# dprint caches info about the files in the repo to skip formatting them.
# However, since package.json and .dprint.jsonc don't change very often,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pnpm-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: pnpm install

- name: Save pnpm cache
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ${{ steps.pnpm-cache.outputs.store }}
key: ${{ runner.os }}-pnpm-store-cache-${{ steps.pnpm-cache.outputs.date }}
2 changes: 2 additions & 0 deletions types/react-file-icon/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import * as React from "react";
export type IconType =
| "3d"
| "acrobat"
| "android"
| "audio"
| "binary"
| "code"
| "code2"
| "compressed"
| "document"
| "drive"
Expand Down
18 changes: 18 additions & 0 deletions types/react-file-icon/react-file-icon-tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,21 @@ class TestFileIcon extends React.Component {
return <FileIcon extension={"docx"} labelUppercase={true} {...defaultStyles.docx} />;
}
}

class TestFileIconCode extends React.Component {
render() {
return <FileIcon extension={"docx"} type="code" color="aliceblue" />;
}
}

class TestFileIconCode2 extends React.Component {
render() {
return <FileIcon extension={"docx"} type="code2" color="aliceblue" />;
}
}

class TestFileIconAndroid extends React.Component {
render() {
return <FileIcon extension={"docx"} type="android" color="aliceblue" />;
}
}