Skip to content

Commit 9b4ba66

Browse files
committed
use defaultValue in TextInput
1 parent 1c1c322 commit 9b4ba66

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/idb-cache-app/src/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const App = () => {
136136
<GitHubLink />
137137

138138
<div className="min-h-screen bg-gray-50 p-8">
139-
<div className="max-w-4xl mx-auto p-6 bg-white shadow-md rounded-lg">
139+
<View as="div" display="block" width="820px" margin="0 auto">
140140
<Heading level="h1" margin="0 0 small 0">
141141
@instructure/idb-cache
142142
</Heading>
@@ -151,7 +151,7 @@ const App = () => {
151151
<TextInput
152152
renderLabel="Cache key:"
153153
interaction="disabled"
154-
value={cacheKey}
154+
defaultValue={cacheKey}
155155
/>
156156
</Flex.Item>
157157
<Flex.Item>
@@ -175,7 +175,7 @@ const App = () => {
175175
<TextInput
176176
renderLabel="Cache buster:"
177177
interaction="disabled"
178-
value={cacheBuster}
178+
defaultValue={cacheBuster}
179179
/>
180180
</Flex.Item>
181181
<Flex.Item>
@@ -426,7 +426,7 @@ const App = () => {
426426
</Flex>
427427
</View>
428428
</form>
429-
</div>
429+
</View>
430430
</div>
431431
</>
432432
);

0 commit comments

Comments
 (0)