Skip to content

Commit

Permalink
use defaultValue in TextInput
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshaf committed Nov 16, 2024
1 parent 1c1c322 commit 9b4ba66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/idb-cache-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const App = () => {
<GitHubLink />

<div className="min-h-screen bg-gray-50 p-8">
<div className="max-w-4xl mx-auto p-6 bg-white shadow-md rounded-lg">
<View as="div" display="block" width="820px" margin="0 auto">
<Heading level="h1" margin="0 0 small 0">
@instructure/idb-cache
</Heading>
Expand All @@ -151,7 +151,7 @@ const App = () => {
<TextInput
renderLabel="Cache key:"
interaction="disabled"
value={cacheKey}
defaultValue={cacheKey}
/>
</Flex.Item>
<Flex.Item>
Expand All @@ -175,7 +175,7 @@ const App = () => {
<TextInput
renderLabel="Cache buster:"
interaction="disabled"
value={cacheBuster}
defaultValue={cacheBuster}
/>
</Flex.Item>
<Flex.Item>
Expand Down Expand Up @@ -426,7 +426,7 @@ const App = () => {
</Flex>
</View>
</form>
</div>
</View>
</div>
</>
);
Expand Down

0 comments on commit 9b4ba66

Please sign in to comment.